Malt  Malt::Format::Builder

[Validate]
Generated with RDazzle Newfish 1.4.0

Builder

Builder looks like a Markup format, but it is a template format as Ruby code.

  http://builder.rubyforge.org/

Public Instance Methods

builder(*) click to toggle source
    # File lib/malt/formats/builder.rb, line 17
17:     def builder(*)
18:       text
19:     end
html(data=nil, &yld) click to toggle source
    # File lib/malt/formats/builder.rb, line 27
27:     def html(data=nil, &yld)
28:       render_engine.render(:format=>:html, :text=>text, :file=>file, :data=>data, &yld)
29:     end
to_builder(*) click to toggle source
    # File lib/malt/formats/builder.rb, line 22
22:     def to_builder(*)
23:       self
24:     end
to_html(data=nil, &yld) click to toggle source
    # File lib/malt/formats/builder.rb, line 32
32:     def to_html(data=nil, &yld)
33:       text = html(data, &yld)
34:       opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
35:       HTML.new(opts)
36:     end

Private Instance Methods

render_engine() click to toggle source
    # File lib/malt/formats/builder.rb, line 49
49:       def render_engine
50:         @render_engine ||= Malt::Engine::Builder.new(options)
51:       end

Disabled; run with --debug to generate this.