class Malt::Format::Haml

Haml looks like a Markup format, but it turns out to be a template format too.

Public Instance Methods

haml(*) click to toggle source
# File lib/malt/formats/haml.rb, line 14
def haml(*)
  text
end
html(*data, &content) click to toggle source
# File lib/malt/formats/haml.rb, line 24
def html(*data, &content)
  render_into(:html, *data, &content)
end
to_haml(*) click to toggle source
# File lib/malt/formats/haml.rb, line 19
def to_haml(*)
  self
end
to_html(*data, &content) click to toggle source
# File lib/malt/formats/haml.rb, line 29
def to_html(*data, &content)
  text = html(*data, &content)
  opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
  HTML.new(opts)
end