forked from mizzy/webiblo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tx
34 lines (32 loc) · 853 Bytes
/
index.tx
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
27
28
29
30
31
32
33
34
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title>
</head>
<body>
<h1>[% title %]</h1>
<ul>
[% FOREACH part IN parts -%]
[% IF part.title -%]
<li><a href="[% part.href %]">[% part.title %]</a></li>
[% END -%]
<ul>
[% FOREACH chapter IN part.chapters -%]
<li><a href="[% chapter.href %]">[% chapter.title %]</a></li>
<ul>
[% FOREACH section IN chapter.sections -%]
<li><a href="[% section.href %]">[% section.title %]</li>
<ul>
[% FOREACH subsection IN section.subsections -%]
<li><a href="[% subsection.href %]">[% subsection.title %]</li>
[% END %]
</ul>
[% END -%]
</ul>
[% END -%]
</ul>
[% END -%]
</ul>
</body>
</html>