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