class Padrino::Helpers::OutputHelpers::AbstractHandler

@abstract Extend this to create a template handler

def block_is_type?(block)


@handler.block_is_type?(block) => true
@example

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..."
@example

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")
@example

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

def engines


@handler.engines => [:erb, :erubis]
@example

Returns an array of engines used for the template
#
def engines
  # Implemented in subclass
end

def initialize(template)

def initialize(template)
  @template = template
end

def is_type?


@handler.is_type? => true
@example

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 => "erb"
@example

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