debugger.py
This file
Path
examples/basic/debugger.py
7 lines · 205 bytes · Python
Last changed by
moved example code aroundArmin Ronacherbefore adoption612b3a8
History of this fileJinja is a fast, expressive, extensible templating engine.
0 open asksLanded
03e4e29Added tag 2.1 for changeset dbf1e3a0b178Armin Ronacher ·
examples/basic/debugger.py
7 lines · 205 bytes · Python
moved example code around · Armin Ronacher · before adoption · 612b3a8 ·
History of this file7 lines · 205 bytes · Python
moved example code around · Armin Ronacher · before adoption · 612b3a8 ·
lines 1–7why, one step back1from jinja2 import Environment2from jinja2.loaders import FileSystemLoader34env = Environment(loader=FileSystemLoader('templates'))56tmpl = env.get_template('broken.html')7print tmpl.render(seq=range(10))