Class: StaticMatic::TemplateHandlers::Haml
- Inherits:
-
ActionView::TemplateHandler
- Object
- ActionView::TemplateHandler
- StaticMatic::TemplateHandlers::Haml
- Includes:
- ActionView::TemplateHandlers::Compilable
- Defined in:
- lib/staticmatic/template_handlers/haml.rb
Instance Method Summary collapse
Instance Method Details
#compile(template, local_assigns = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/staticmatic/template_handlers/haml.rb', line 9 def compile(template, local_assigns = {}) = StaticMatic::Config[:haml_options].dup [:filename] = template.filename ::Haml::Engine.new(template.source, ).send(:precompiled_with_ambles, []) end |