Builder template implementation. See: builder.rubyforge.org/
# File lib/tilt/builder.rb, line 19 def evaluate(scope, locals, &block) return super(scope, locals, &block) if data.respond_to?(:to_str) xml = ::Builder::XmlMarkup.new(:indent => 2) data.call(xml) xml.target! end
# File lib/tilt/builder.rb, line 13 def initialize_engine require_template_library 'builder' end
# File lib/tilt/builder.rb, line 31 def precompiled_postamble(locals) "xml.target!" end
# File lib/tilt/builder.rb, line 26 def precompiled_preamble(locals) return super if locals.include? :xml "xml = ::Builder::XmlMarkup.new(:indent => 2)\n#{super}" end
Generated with the Darkfish Rdoc Generator 2.