2 # -*- coding: utf-8 -*-
7 Helper script for internal Jinja2 debugging. Requires Werkzeug.
9 :copyright: Copyright 2008 by Armin Ronacher.
14 from werkzeug import script
16 env = jinja2.Environment(extensions=['jinja2.ext.i18n', 'jinja2.ext.do',
17 'jinja2.ext.loopcontrols'])
19 def shell_init_func():
21 print env.compile(x, raw=True)
28 for key in jinja2.__all__:
29 result[key] = getattr(jinja2, key)
34 print env.compile(sys.stdin.read(), raw=True)
36 action_shell = script.make_shell(shell_init_func)
39 if __name__ == '__main__':