Class ::xowiki::TreeRenderer=sections

::xowiki::TreeRenderer=sections[i] create ...

Class Relations

  • class: ::xowiki::TreeRenderer[i]
  • superclass: ::xowiki::TreeRenderer=list[i]
::xowiki::TreeRenderer create ::xowiki::TreeRenderer=sections \
     -superclass ::xowiki::TreeRenderer=list

Methods (to be applied on instances)

  • render_item (scripted)

    $item instvar title href
    set prefix [$item set prefix]
    set suffix [$item set suffix]
    if {![$item exists encoded(prefix)]} {set prefix [::xowiki::Includelet html_encode $prefix]}
    if {![$item exists encoded(suffix)]} {set suffix [::xowiki::Includelet html_encode $suffix]}
    append entry  $prefix "<a href='[ns_quotehtml $href]'>" [::xowiki::Includelet html_encode $title"</a>" $suffix
    if {$highlight} {
      return "<b>$entry</b><br>\n"
    } else {
      return "$entry<br>\n"
    }
  • render_node (scripted)

    set section [expr {${:level} + 2}]
    set label [::xowiki::Includelet html_encode ${:label}]
    return "<h$section>$label</h$section>\n<p> <div style='margin-left: 2em; margin-right:0px;'>$cat_content</div>\n"