class Tennpipes::Helpers::OutputHelpers::HamlHandler

Handler for Haml templates.

Public Instance Methods

capture_from_template(*args) { |*args| ... } click to toggle source

Captures the html from a block of template code for this handler.

# File lib/tennpipes-helper/output_helpers/haml_handler.rb, line 18
def capture_from_template(*args, &block)
  engine_matches?(block) ? template.capture_haml(*args, &block) : yield(*args)
end
engine_matches?(block) click to toggle source

Returns true if the block is for Haml

# File lib/tennpipes-helper/output_helpers/haml_handler.rb, line 11
def engine_matches?(block)
  template.block_is_haml?(block)
end