% for i in root.children:
${printtocelement(item=i, bold = (i == current), full = full, children=children, anchor_toplevel=anchor_toplevel)}
% endfor
%def>
<%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