class Padrino::Helpers::OutputHelpers::AbstractHandler

def block_is_type?(block)


@handler.block_is_type?(block) => true

==== Examples

Returns true if the block given is of the handler's template type; false otherwise.
#
def block_is_type?(block)
  # Implemented in subclass
end

def capture_from_template(*args, &block)


@handler.capture_from_template(&block) => "...html..."

==== Examples

Captures the html from a block of template code for this handler
#
def capture_from_template(*args, &block)
  # Implemented in subclass
end

def concat_to_template(text="")


@handler.concat_to_template("This will be output to the template buffer")

==== Examples

Outputs the given text to the templates buffer directly
#
def concat_to_template(text="")
  # Implemented in subclass
end

def initialize(template)

def initialize(template)
  @template = template
end

def is_type?


@handler.is_type? => true

==== Examples

Returns true if the current template type is same as this handlers; false otherwise.
#
def is_type?
  # Implemented in subclass
end

def template_extension


@handler.template_extension => "erubis"

==== Examples

Returns extension of the template
#
def template_extension
  caller.find { |c| c =~ /\/views\// }[/\.([\w]*?)\:/, 1] rescue nil
  # "/some/path/app/views/posts/foo.html.erubis:3:in `evaluate_source'"
  # => "erubis"
end