blob: ba0d17b5af171ee9f7296707c271ba22351c3e0e (
plain) (
tree)
|
|
module ActionView
module TemplateHandlers
class Builder < TemplateHandler
include Compilable
self.default_format = Mime::XML
def compile(template)
require 'active_support/vendor/builder'
"xml = ::Builder::XmlMarkup.new(:indent => 2);" +
"self.output_buffer = xml.target!;" +
template.source +
";xml.target!;"
end
end
end
end
|