Skip to content
Myr

jdebug.py

This file

Path

jdebug.py

22 lines · 452 bytes · Python

Last changed by

[svn] last changes from yesterday so that i can continue working in school on itArmin Ronacherbefore adoption19863ef

History of this file

Take it

[svn] last changes from yesterday so that i can continue working in school on itArmin Ronacherbefore adoption19863ef

lines 1–22why, one step back
1# -*- coding: utf-8 -*-
2"""3 jdebug4 ~~~~~~56 Helper module to simplify jinja debugging. Use78 :copyright: 2006 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from jinja import Environment12from jinja.parser import Parser13from jinja.translators.python import PythonTranslator141516__all__ = ['e', 't', 'p']1718e = Environment()19t = e.from_string2021def p(x):22 print PythonTranslator(e, Parser(e, x).parse()).translate()