Class: ActionView::Template::Handlers::Builder
- Inherits:
-
ActionView::Template::Handler
- Object
- ActionView::Template::Handler
- ActionView::Template::Handlers::Builder
- Includes:
- Compilable
- Defined in:
- actionpack/lib/action_view/template/handlers/builder.rb
Instance Method Summary (collapse)
Methods included from Compilable
Methods inherited from ActionView::Template::Handler
Instance Method Details
- (Object) compile(template)
8 9 10 11 12 13 14 |
# File 'actionpack/lib/action_view/template/handlers/builder.rb', line 8 def compile(template) require 'builder' "xml = ::Builder::XmlMarkup.new(:indent => 2);" + "self.output_buffer = xml.target!;" + template.source + ";xml.target!;" end |