Class: Hamlit::Filters::Less
- Defined in:
- lib/hamlit/filters/less.rb
Instance Method Summary collapse
Methods inherited from TiltBase
Methods inherited from Base
Constructor Details
This class inherits a constructor from Hamlit::Filters::Base
Instance Method Details
#compile(node) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/hamlit/filters/less.rb', line 10 def compile(node) require 'tilt/less' if explicit_require? temple = [:multi] temple << [:static, "<style>\n"] temple << compile_with_tilt(node, 'less', indent_width: 2) temple << [:static, '</style>'] temple end |