Malt  Malt::Format::Erector

[Validate]
Generated with RDazzle Newfish 1.4.0

Erector

Erecotr looks like a Markup format, but it is a template format Much like pure Ruby too.

Public Instance Methods

erector(*) click to toggle source
    # File lib/malt/formats/erector.rb, line 14
14:     def erector(*)
15:       text
16:     end
html(data=nil, &yld) click to toggle source
    # File lib/malt/formats/erector.rb, line 24
24:     def html(data=nil, &yld)
25:       render_engine.render(:format=>:html, :text=>text, :file=>file, :data=>data, &yld)
26:     end
to_erector(*) click to toggle source
    # File lib/malt/formats/erector.rb, line 19
19:     def to_erector(*)
20:       self
21:     end
to_html(data=nil, &yld) click to toggle source
    # File lib/malt/formats/erector.rb, line 29
29:     def to_html(data=nil, &yld)
30:       text = html(data, &yld)
31:       opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
32:       HTML.new(opts)
33:     end

Private Instance Methods

render_engine() click to toggle source
    # File lib/malt/formats/erector.rb, line 46
46:       def render_engine
47:         @render_engine ||= Malt::Engine::Erector.new(options)
48:       end

Disabled; run with --debug to generate this.