Dirty patch is here:
----
--- web/contrib/template.py     2009-02-20 16:33:17.000000000 +0800
+++ web/contrib/template.py     2009-03-12 17:10:07.000000000 +0800
@@ -81,9 +81,10 @@
         render= render_jinja('templates')
         render.hello(name='jinja2')
     """
-    def __init__(self, *a, **kwargs):
+    def __init__(self, extensions=[], globals={}, *a, **kwargs):
         from jinja2 import Environment,FileSystemLoader
-        self._lookup = Environment(loader=FileSystemLoader(*a,
**kwargs))
+        self._lookup = Environment(loader=FileSystemLoader(*a,
**kwargs), extensions=extensions)
+        self._lookup.globals = globals

     def __getattr__(self, name):
         # Assuming all templates end with .html
----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to