class Tilt::BuilderTemplate
builder.rubyforge.org/
Builder template implementation. See:
def evaluate(scope, locals, &block)
def evaluate(scope, locals, &block) xml = (locals[:xml] ||= ::Builder::XmlMarkup.new(options)) return super(scope, locals, &block) if data.respond_to?(:to_str) data.call(xml) xml.target! end
def precompiled_postamble(locals)
def precompiled_postamble(locals) "xml.target!" end
def precompiled_template(locals)
def precompiled_template(locals) data.to_str end
def prepare
def prepare options[:indent] ||= 2 end