module Padrino::Helpers::OutputHelpers

def concat_content(text="")


concat_content("This will be output to the template buffer in erb or haml")

==== Examples

Outputs the given text to the templates buffer directly
#
def concat_content(text="")
  if self.respond_to?(:is_haml?) && is_haml?
    haml_concat(text)
  elsif has_erb_buffer?
    erb_concat(text)
  else # theres no template to concat, return the text directly
    text
  end
end