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