Class: Padrino::Helpers::OutputHelpers::HamlitHandler
- Inherits:
-
AbstractHandler
- Object
- AbstractHandler
- Padrino::Helpers::OutputHelpers::HamlitHandler
- Defined in:
- lib/padrino-helpers/output_helpers/haml_handler.rb
Overview
Handler for Haml templates.
Instance Attribute Summary
Attributes inherited from AbstractHandler
Instance Method Summary collapse
-
#engine_matches?(block) ⇒ Boolean
Returns true if the block is for Hamlit.
Methods inherited from AbstractHandler
#capture_from_template, #concat_to_template, #initialize
Constructor Details
This class inherits a constructor from Padrino::Helpers::OutputHelpers::AbstractHandler
Instance Method Details
#engine_matches?(block) ⇒ Boolean
Returns true if the block is for Hamlit.
33 34 35 |
# File 'lib/padrino-helpers/output_helpers/haml_handler.rb', line 33 def engine_matches?(block) block.binding.eval('defined? __in_hamlit_template') end |