#extends prewikka.templates.ClassicLayout #def layout_start_hook #end def #block main_content #set global $section_cnt = 0 #set global $row_classes = ("table_row_even", "table_row_odd") #set global $entry_value_classes = ("section_alert_entry_value_normal", "section_alert_entry_value_emphasis") #def display_table($section, $depth) #set $table_cnt = 0 #for table in $section.tables #if $depth == 0 and $table_cnt > 0 and $table.style.find("inline") == -1
#end if #if $table.odd_even #else
#end if #set $table_cnt += 1 #set $row_class="" #for row in $table.rows #for col in row #if $col.header #set $row_class="table_row_even" #elif $col.tables #set $row_class="" #else #end if #end for #end for
$col.name$display_table($col, $depth + 1)$col.name
#end for #end def #def display_node($sections) #for $section in $sections
$section.title
$display_table($section, 0) #if $section.entries #set $cnt = 0 #for $entry in $section.entries #if $entry.name #end if #set $cnt += 1 #end for
$entry.name$entry.value
#end if #set global $section_cnt += 1 #if $section.sections $display_node($section.sections) #end if
#end for #end def
$display_node($sections)
#end block main_content