class Padrino::Helpers::OutputHelpers::ErbHandler
Handler for Erb template.
Public Instance Methods
concat_to_template(text="")
click to toggle source
Outputs the given text to the templates buffer directly.
# File lib/padrino-helpers/output_helpers/erb_handler.rb, line 11 def concat_to_template(text="") output_buffer << text nil end
engine_matches?(block)
click to toggle source
Returns true if the block is Erb.
# File lib/padrino-helpers/output_helpers/erb_handler.rb, line 19 def engine_matches?(block) block.binding.eval('defined? __in_erb_template') end