module Padrino::Helpers::OutputHelpers
def block_is_template?(block)
Used to determine if html should be returned or concatted to view
Returns true if the block is from an ERB or HAML template; false otherwise.
def block_is_template?(block) block && (block_is_erb?(block) || (self.respond_to?(:block_is_haml?) && block_is_haml?(block))) end