author | Tero Marttila <terom@paivola.fi> |
Wed, 10 Oct 2012 21:39:54 +0300 | |
changeset 0 | 91c739202f06 |
child 1 | 731d2df704f0 |
permissions | -rw-r--r-- |
0 | 1 |
# view |
2 |
from pvl.html import tags as html |
|
3 |
||
4 |
def render_layout (title, content) : |
|
5 |
css = [ |
|
6 |
"/static/layout.css", |
|
7 |
"/static/style.css", |
|
8 |
] |
|
9 |
||
10 |
return html.document(html.html( |
|
11 |
html.head( |
|
12 |
html.title(title), |
|
13 |
( |
|
14 |
html.link(rel='Stylesheet', type="text/css", href=src) for src in css |
|
15 |
), |
|
16 |
), |
|
17 |
html.body( |
|
18 |
html.h1(title), |
|
19 |
content |
|
20 |
) |
|
21 |
)) |
|
22 |
||
23 |