diff options
Diffstat (limited to 'templates/page.mako')
-rw-r--r-- | templates/page.mako | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/page.mako b/templates/page.mako index 49671ff..cc3f480 100644 --- a/templates/page.mako +++ b/templates/page.mako @@ -1,6 +1,6 @@ <%! title = "" - uses_menu = False + uses_toc = False %> <%inherit file="/root.mako" /> @@ -8,9 +8,9 @@ <h1 class="title">${self.attr.title}</h1> ${next.body()} -% if self.attr.uses_menu: +% if self.attr.uses_toc: <script type="text/javascript"> - createToc(${h.toJS(self.attr.mlist)}) + createToc(${h.toJS(self.attr.tlist)}) </script> % endif @@ -22,13 +22,13 @@ ${next.body()} <%def name="h2()"> <% - if self.attr.uses_menu: + if self.attr.uses_toc: c = capture(caller.body) name = c.replace(" ", "_").lower() - mlist = getattr(self.attr, "mlist", []) - mlist.append((str(name), str(c))) + tlist = getattr(self.attr, "tlist", []) + tlist.append((str(name), str(c))) - self.attr.mlist = mlist + self.attr.tlist = tlist else: name = "#" %> |