Sha256: d46751f4a4bfea88ba0f429a7dbd590031ea42b2dbb482dd6f19686c6f9ef827
Contents?: true
Size: 396 Bytes
Versions: 73
Compression:
Stored size: 396 Bytes
Contents
require 'builder' module ActionView module TemplateHandlers class Builder < TemplateHandler include Compilable def compile(template) "_set_controller_content_type(Mime::XML);" + "xml = ::Builder::XmlMarkup.new(:indent => 2);" + "self.output_buffer = xml.target!;" + template.source + ";xml.target!;" end end end end
Version data entries
73 entries across 70 versions & 14 rubygems