Handler for Haml templates.
Captures the html from a block of template code for this handler.
# File lib/padrino-helpers/output_helpers/haml_handler.rb, line 20 def capture_from_template(*args, &block) engine_matches?(block) ? template.capture_haml(*args, &block) : yield(*args) end
Returns true if the block is for Haml
# File lib/padrino-helpers/output_helpers/haml_handler.rb, line 13 def engine_matches?(block) template.block_is_haml?(block) end