class Padrino::Helpers::OutputHelpers::ErbHandler


Handler for Erb template.
#

def concat_to_template(text="", context=nil)


Outputs the given text to the templates buffer directly.
#
def concat_to_template(text="", context=nil)
  return text if context && context.eval("@__in_ruby_literal")
  output_buffer << text
  nil
end

def engine_matches?(block)


Returns true if the block is Erb.
#
def engine_matches?(block)
  block.binding.eval('defined? __in_erb_template')
end