Sha256: 742a4fc62da367eeaec60fe85d9716af04eb2fe59e18c23b8c4ffbbe7673a4ee
Contents?: true
Size: 406 Bytes
Versions: 8
Compression:
Stored size: 406 Bytes
Contents
require 'faml/filter_compilers/tilt_base' module Faml module FilterCompilers class Coffee < TiltBase def compile(ast) temple = [:multi, [:static, "\n"], [:newline]] compile_with_tilt(temple, 'coffee', ast) temple << [:static, "\n"] [:haml, :tag, 'script', false, [:html, :attrs], [:html, :js, temple]] end end register(:coffee, Coffee) end end
Version data entries
8 entries across 8 versions & 1 rubygems