@see Hpricot @private
@see Haml::HTML::Node#to_haml
# File lib/haml/html.rb, line 215 215: def to_haml(tabs, options) 216: content = self.content 217: if content =~ /\A(\[[^\]]+\])>(.*)<!\[endif\]\z/ 218: condition = $1 219: content = $2 220: end 221: 222: if content.include?("\n") 223: "#{tabulate(tabs)}/#{condition}\n#{parse_text(content, tabs + 1)}" 224: else 225: "#{tabulate(tabs)}/#{condition} #{content.strip}\n" 226: end 227: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.