class Malt::Format::RHTML
RHTML
is a variant of Erb
files which are limited to conversion to HTML
.
Public Instance Methods
html(*data, &content)
click to toggle source
# File lib/malt/formats/rhtml.rb, line 33 def html(*data, &content) render_into(:html, *data, &content) #render_engine.render(:text=>text, :file=>file, :data=>data, :to=>:html, &yld) end
to_html(*data, &yld)
click to toggle source
# File lib/malt/formats/rhtml.rb, line 39 def to_html(*data, &yld) text = html(data, &yld) opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html) HTML.new(opts) end