# toc.myt - prints full table of contents listings given toc.TOCElement strucures <%def name="toc(toc)">

Table of Contents

   (view full table)

${printtoc(root=toc,current=None,full=False,children=False,anchor_toplevel=False)}

Table of Contents: Full

   (view brief table)

${printtoc(root=toc,current=None,full=True,children=True,anchor_toplevel=False)}
<%def name="printtoc(root,current=None,full=False,children=True,anchor_toplevel=False)"> <%def name="printtocelement(item, anchor_toplevel, bold=False, full=False, children=True, extension='html')"> # prints a TOCElement as a table of contents item and prints its immediate child items
  • ${item.description}
  • % if children: % endif <%def name="printsmtocelem(item, children=False, extension='html')">
  • ${item.description}
  • % if children: % endif