More extensions in jinja debug
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 24 May 2011 14:40:09 +0000 (16:40 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 24 May 2011 14:40:09 +0000 (16:40 +0200)
jinja2-debug.py

index c9c482f109402dcadbd51bb91a5d9a46049605f9..80bbc628a050ee9f77cafa1fc4d140452c169d79 100755 (executable)
@@ -14,7 +14,10 @@ import jinja2
 from werkzeug import script
 
 env = jinja2.Environment(extensions=['jinja2.ext.i18n', 'jinja2.ext.do',
-                                     'jinja2.ext.loopcontrols'])
+                                     'jinja2.ext.loopcontrols',
+                                     'jinja2.ext.with_',
+                                     'jinja2.ext.autoescape'],
+                         autoescape=True)
 
 def shell_init_func():
     def _compile(x):