debugger.py
This file
Path
examples/basic/debugger.py
7 lines · 223 bytes · Python
Last changed by
Improved Jinja's debugging support by introducing "@internalcode" which marks code objects that are skipped on tracebacks. Also template errors are now translated as well to help the pylons debugger.Armin Ronacherbefore adoptiond416a97
History of this fileTake it
The walk stopped after 200 commits: lines older than 0a2ac69 point at it.
switched back to explicit set for assignments. {% foo = 42 %} becomes {% set foo = 42 %} and {% foo.something() }} becomes {{ void(foo.something() }} with this commit.Armin Ronacherbefore adoption0a2ac69
lines 1–6why, one step back1from jinja2 import Environment2from jinja2.loaders import FileSystemLoader34env = Environment(loader=FileSystemLoader('templates'))56tmpl = env.get_template('broken.html')Improved Jinja's debugging support by introducing "@internalcode" which marks code objects that are skipped on tracebacks. Also template errors are now translated as well to help the pylons debugger.Armin Ronacherbefore adoptiond416a97
line 7why, one step back7print tmpl.render(seq=[3, 2, 4, 5, 3, 2, 0, 2, 1])