changeset 0 | 91c739202f06 |
child 1 | 731d2df704f0 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pvl/verkko/web.py Wed Oct 10 21:39:54 2012 +0300 @@ -0,0 +1,23 @@ +# view +from pvl.html import tags as html + +def render_layout (title, content) : + css = [ + "/static/layout.css", + "/static/style.css", + ] + + return html.document(html.html( + html.head( + html.title(title), + ( + html.link(rel='Stylesheet', type="text/css", href=src) for src in css + ), + ), + html.body( + html.h1(title), + content + ) + )) + +