class Tilt::BuilderTemplate
builder.rubyforge.org/
Builder template implementation. See:
def evaluate(scope, locals, &block)
def evaluate(scope, locals, &block) xml = ::Builder::XmlMarkup.new(:indent => 2) if data.respond_to?(:to_str) locals[:xml] = xml super(scope, locals, &block) elsif data.kind_of?(Proc) data.call(xml) end xml.target! end
def initialize_engine
def initialize_engine return if defined?(::Builder) require_template_library 'builder' end
def precompiled_template(locals)
def precompiled_template(locals) data.to_str end
def prepare
def prepare end