diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-04 12:36:58 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-04 12:36:58 +0200 |
commit | 4b4905db5f4123a88dca9f0164a3a35679a9dc13 (patch) | |
tree | ea27faa54edb1fa2b00b713bd42229e9a9d51e34 /templates/page.mako | |
parent | 5e319a2c641e67594000afdef477ac96e6283fa6 (diff) | |
download | kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.tar.gz kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.tar.bz2 kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.zip |
More controller stuff
Diffstat (limited to '')
-rw-r--r-- | templates/page.mako | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/templates/page.mako b/templates/page.mako index aa2aa51..cc9911f 100644 --- a/templates/page.mako +++ b/templates/page.mako @@ -1,46 +1,9 @@ <%! title = "" - uses_toc = False %> -<% - page_text = capture(next.body) -%> - <%inherit file="/root.mako" /> ## content <h1 class="title">${self.attr.title}</h1> -% if self.attr.uses_toc: - ${self.preface()} - ${self.toc()} -% endif - -${page_text} - -## functions - -<%def name="h2(tag='h2')"> - <% - if self.attr.uses_toc: - c = capture(caller.body) - name = c.replace(" ", "_").replace("/", "_").lower() - tlist = getattr(self.attr, "tlist", []) - tlist.append((str(name), str(c))) - - self.attr.tlist = tlist - else: - name = "#" - %> - <${tag}><a name="${name}"><span class="hstart">» </span></a>${caller.body()}</${tag}> -</%def> - -<%def name="toc()"> - <ul id="toc"> - % for url, name in self.attr.tlist: - <li><a class="tocLink" href="#${url}">${name}</a></li> - % endfor - </ul> -</%def> - -<%def name="preface()"></%def> +${next.body()} |