Class: Padrino::Helpers::OutputHelpers::SlimHandler
- Inherits:
-
AbstractHandler
- Object
- AbstractHandler
- Padrino::Helpers::OutputHelpers::SlimHandler
- Defined in:
- lib/padrino-helpers/output_helpers/slim_handler.rb
Overview
Handler for Slim templates.
Instance Attribute Summary
Attributes inherited from AbstractHandler
Instance Method Summary collapse
-
#engine_matches?(block) ⇒ Boolean
Returns true if the block is for Slim.
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 Slim.
11 12 13 |
# File 'lib/padrino-helpers/output_helpers/slim_handler.rb', line 11 def engine_matches?(block) block.binding.eval('defined? __in_slim_template') end |