summaryrefslogtreecommitdiff
path: root/templates/root.mako
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/root.mako60
1 files changed, 23 insertions, 37 deletions
diff --git a/templates/root.mako b/templates/root.mako
index b05e7fd..19ac4ac 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -2,10 +2,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- ${self.js()}
+ <%block name="js">
+ <script type="text/javascript" src=${"/static/js/jquery-1.4.2.js" | url}></script>
+ <script type="text/javascript" src=${"/static/js/lib.js" | url}></script>
+ </%block>
<link rel="shortcut icon" href=${"/static/images/currency.png" | url} type="image/icon">
- <title>${self.title()}</title>
- ${self.style()}
+ <title><%block name="title">Kostenverwaltung</%block></title>
+ <%block name="style">
+ <link href=${"/static/css/style.css" | url} rel="stylesheet" type="text/css" />
+ </%block>
</head>
<body>
@@ -18,7 +23,14 @@
<div id="header">
<div id="menu">
- ${self.menu()}
+ <%block name="menu">
+ <%namespace file="menu.mako" name="m" />
+ <ul>
+ % for uri, page in m.attr.menu:
+ <li><a href=${uri | url}>${page}</a></li>
+ % endfor
+ </ul>
+ </%block>
</div>
</div>
</div>
@@ -30,39 +42,13 @@
<div style="clear: both;"></div>
</div>
<div id="footer">
- <p id="legal">
- ${self.footer()}
- </p>
+ <%block name="footer">
+ <p id="legal">
+ powered by <a href="http://www.makotemplates.org">mako</a> &amp; <a href="http://www.webpy.org">web.py</a> |
+ © 2010-2011. All Rights Reserved. René Neumann |
+ with the help of <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
+ </p>
+ </%block>
</div>
</body>
</html>
-
-## functions
-
-<%def name="title()">
- Kostenverwaltung
-</%def>
-
-<%def name="style()">
- <link href=${"/static/css/style.css" | url} rel="stylesheet" type="text/css" />
-</%def>
-
-<%def name="js()">
- <script type="text/javascript" src=${"/static/js/jquery-1.4.2.js" | url}></script>
- <script type="text/javascript" src=${"/static/js/lib.js" | url}></script>
-</%def>
-
-<%def name="footer()">
- powered by <a href="http://www.makotemplates.org">mako</a> &amp; <a href="http://www.webpy.org">web.py</a> |
- © 2010-2011. All Rights Reserved. René Neumann |
- with the help of <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
-</%def>
-
-<%def name="menu()">
- <%namespace file="menu.mako" name="m" />
- <ul>
- % for uri, page in m.attr.menu:
- <li><a href=${uri | url}>${page}</a></li>
- % endfor
- </ul>
-</%def>