Class: Haml::TempleEngine
- Defined in:
- lib/haml/engine.rb
Overview
For backward compatibility of Tilt integration. TODO: We should deprecate this and let Tilt have a native support of Haml 6. At least it generates warnings now.
Instance Method Summary collapse
Instance Method Details
#compile(template) ⇒ Object
45 46 47 |
# File 'lib/haml/engine.rb', line 45 def compile(template) @precompiled = call(template) end |
#precompiled_with_ambles(_local_names, after_preamble:) ⇒ Object
49 50 51 |
# File 'lib/haml/engine.rb', line 49 def precompiled_with_ambles(_local_names, after_preamble:) "#{after_preamble.tr("\n", ';')}#{@precompiled}".dup end |