class Malt::Format::RagTag

RagTag

http://github.com/rubyworks/ragtag

Public Instance Methods

html(*data, &content) click to toggle source
# File lib/malt/formats/ragtag.rb, line 17
def html(*data, &content)
  render_into(:html, *data, &content)
  #render_engine.render(:text=>text, :data=>data, &yld)
end
to_html(*data, &yld) click to toggle source
# File lib/malt/formats/ragtag.rb, line 23
def to_html(*data, &yld)
  text = html(*data, &yld)
  opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
  HTML.new(opts)
end
to_xml(*data, &yld) click to toggle source
# File lib/malt/formats/ragtag.rb, line 35
def to_xml(*data, &yld)
  text = xml(*data, &yld)
  opts = options.merge(:text=>text, :file=>refile(:xml), :type=>:xml)
  XML.new(opts)
end
xml(*data, &yld) click to toggle source
# File lib/malt/formats/ragtag.rb, line 30
def xml(*data, &yld)
  render_into(:xml, *data, &content)
end