--- a/pvl/verkko/web.py Wed Oct 10 21:39:54 2012 +0300
+++ b/pvl/verkko/web.py Wed Oct 10 21:59:34 2012 +0300
@@ -1,3 +1,5 @@
+from werkzeug.wrappers import Response
+
# view
from pvl.html import tags as html
@@ -7,7 +9,7 @@
"/static/style.css",
]
- return html.document(html.html(
+ return unicode(html.document(html.html(
html.head(
html.title(title),
(
@@ -18,6 +20,12 @@
html.h1(title),
content
)
- ))
+ )))
+def render_index () :
+ return Response(render_layout("Verkko", (
+ html.ul(
+ html.a(href='/hosts')("DHCP Hosts"),
+ )
+ )), content_type='text/html')