Class: Hamlit::Filters::Coffee
- Defined in:
- lib/hamlit/filters/coffee.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Tilt
Methods included from Concerns::StringInterpolation
#contains_interpolation?, #string_literal
Methods inherited from Base
#compile_lines, indent_source, #initialize
Constructor Details
This class inherits a constructor from Hamlit::Filters::Base
Instance Method Details
#compile(lines) ⇒ Object
6 7 8 9 |
# File 'lib/hamlit/filters/coffee.rb', line 6 def compile(lines) ast = [:html, :tag, 'script', [:html, :attrs]] compile_with_tilt('coffee', lines.join("\n"), ast) end |