diff -r 8f143b1ce0d1 -r 9d3beac1b196 lib/template.py --- 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 :