aboutsummaryrefslogtreecommitdiffstats
path: root/doc/build/templates/toc.html
blob: d4ba2f361ca02c4bac5e2ffdbd9ef89ec32f7e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# toc.myt - prints full table of contents listings given toc.TOCElement strucures

<%def name="toc(toc, paged=True)">
	<div class="topnav">

	<a name="full_index"></a>
	<h3>Table of Contents</h3>
	
	${printtoc(root=toc,current=None,full=True,children=True,anchor_toplevel=False, paged=paged)}

	</div>
</%def>


<%def name="printtoc(root,current=None,full=False,children=True,anchor_toplevel=False,extension='html',paged=True)">
    <ul>
    % for item in root.children:
        <li><A style="${item is current and "font-weight:bold;" or "" }" href="${item.get_link(extension=extension,anchor=anchor_toplevel, usefilename=paged) }">${item.description}</a></li>
        
        % if children:
            ${printtoc(item, current=current, full=full,children=True,anchor_toplevel=True, paged=paged)}
        % endif
    % endfor
    </ul>
</%def>