From 83e76d0c20ab6ee6cb79d020da43a9ec04fa154b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 7 Apr 2010 14:01:59 +0200 Subject: Renamed 'menu' to the correct 'toc' --- templates/page.mako | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/page.mako') 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 @@

${self.attr.title}

${next.body()} -% if self.attr.uses_menu: +% if self.attr.uses_toc: % 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 = "#" %> -- cgit v1.2.3