Class: FastHaml::FilterCompilers::Coffee
- Defined in:
- lib/fast_haml/filter_compilers/coffee.rb
Instance Method Summary collapse
Methods inherited from TiltBase
Methods inherited from Base
Instance Method Details
#compile(texts) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/fast_haml/filter_compilers/coffee.rb', line 6 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 |