lib/handler.py
changeset 9 2a47b00f60b0
parent 8 0ce1f471e9d7
child 10 d83b10c210e3
--- a/lib/handler.py	Fri Feb 06 22:48:00 2009 +0200
+++ b/lib/handler.py	Fri Feb 06 23:21:24 2009 +0200
@@ -2,7 +2,7 @@
     The actual application behaviour, i.e. generating a Response from a Request :)
 """
 
-import http, page, template
+import http, page, menu, template
 
 def handle_request (request) :
     """
@@ -18,8 +18,8 @@
     # render the template
     response_data = template.render("layout",
         site_root_url   = request.get_script_dir(),
-        page_title      = p.get_title(),
-        page_content    = p.get_content(),
+        page            = p,
+        menu            = menu.Menu(p),
     )
     
     # return the response