module Haml::Helpers

Public Instance Methods

li_pages_for( node ) click to toggle source
# File lib/docubot/writers/html.rb, line 74
def li_pages_for( node )
        node.children.each do |child|
                haml_tag :li, :class=>(child.anchor ? 'sublink' : child.children.empty? ? 'section' : 'page' ) do
                        haml_tag :a, :href=>child.link do
                                haml_concat child.title
                        end
                        unless child.children.empty?
                                haml_tag :ul do
                                        li_pages_for child
                                end
                        end
                end
        end
end