In Files

Parent

Methods

Class Index [+]

Quicksearch

Hpricot::Comment

@see Hpricot @private

Public Instance Methods

to_haml(tabs, options) click to toggle source

@see Haml::HTML::Node#to_haml

     # File lib/haml/html.rb, line 231
231:       def to_haml(tabs, options)
232:         content = self.content
233:         if content =~ /\A(\[[^\]]+\])>(.*)<!\[endif\]\z/
234:           condition = $1
235:           content = $2
236:         end
237: 
238:         if content.include?("\n")
239:           "#{tabulate(tabs)}/#{condition}\n#{parse_text(content, tabs + 1)}"
240:         else
241:           "#{tabulate(tabs)}/#{condition} #{content.strip}\n"
242:         end
243:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.