lib/template.py
changeset 26 9d3beac1b196
parent 21 b05979822dee
child 32 be954df4f0e8
--- a/lib/template.py	Sat Feb 07 04:44:00 2009 +0200
+++ b/lib/template.py	Sat Feb 07 04:57:22 2009 +0200
@@ -10,6 +10,8 @@
 # for http.ResponseError
 import http
 
+import helpers
+
 # path to template files
 TEMPLATE_DIR = "templates"
 
@@ -59,7 +61,13 @@
     """
 
     try :
-        return tpl.render_unicode(**params)
+        return tpl.render_unicode(
+            # global helper stuff
+            h           = helpers,
+
+            # render-specific params
+            **params
+        )
     
     # a template may render other templates
     except TemplateError :