Class: Padrino::Helpers::OutputHelpers::HamlitHandler

Inherits:
AbstractHandler show all
Defined in:
padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb

Overview

Handler for Haml templates.

Instance Attribute Summary

Attributes inherited from AbstractHandler

#output_buffer, #template

Instance Method Summary collapse

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 'padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb', line 33

def engine_matches?(block)
  block.binding.eval('defined? __in_hamlit_template')
end