Builder template implementation. See: builder.rubyforge.org/
# File lib/sinatra/tilt.rb, line 549 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
# File lib/sinatra/tilt.rb, line 541 def initialize_engine return if defined?(::Builder) require_template_library 'builder' end
Generated with the Darkfish Rdoc Generator 2.