From 30f0c5929254571b6fd2cd36ead67ce90ecf17ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 7 Apr 2010 22:11:54 +0200 Subject: Removed the javascript toc and replaced it by a mako-solution --- templates/page.mako | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'templates/page.mako') diff --git a/templates/page.mako b/templates/page.mako index 4670764..625a05c 100644 --- a/templates/page.mako +++ b/templates/page.mako @@ -2,25 +2,23 @@ title = "" uses_toc = False %> +<% + page_text = capture(next.body) +%> <%inherit file="/root.mako" /> -

${self.attr.title}

-${next.body()} +## content +

${self.attr.title}

% if self.attr.uses_toc: - + ${self.preface()} + ${self.toc()} % endif +${page_text} -<%def name="style()"> - ${parent.style()} - % if self.attr.uses_toc: - - % endif - +## functions <%def name="h2()"> <% @@ -38,13 +36,11 @@ ${next.body()} <%def name="toc()"> -
- -
- + + +<%def name="preface()"> -- cgit v1.2.3