path handling from ENV; voidspace.css
[wrigit.git] / example / functions.mako
blob6a78b4724c59ee8230d29ca6cfb370f7ca11bef8
1 <!-- -*- mode: html -*- -->
3 <!-- Functions -->
5 <%def name="render_page(page, sub=False)">
6 %if sub:
7 <h2>${page.title}</h1>
8 %else:
9 <h1 class="title">${page.title}</h1>
10 %endif
11 <div style="padding: 7px;">
12   ${page.fragment}
13 </div>
14 <div style="float: right;">
15   Posted on <span style="font-style: italic;">
16         ${page.meta.get('date', '--')}</span> to
17   <span style="color: blue;">${page.meta.get('tags', '--')}
18 </div>
19 <div>
20   <a href="${page.url()}">Link</a>
21 </div>
22 <div style="clear: both;"></div>
23 </%def>