Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (26 sloc) 0.995 kb
d6a2003 @mitsuhiko Documentation update. Documentation will become the new Jinja2 website
authored
1 Welcome to Jinja2
2 =================
3
4 Jinja2 is a modern and designer friendly templating language for Python,
5 modelled after Django's templates. It is fast, widely used and secure
6 with the optional sandboxed template execution environment:
7
8 .. sourcecode:: html+jinja
083ae16 @mitsuhiko bootstrapped new documentation
authored
9
d6a2003 @mitsuhiko Documentation update. Documentation will become the new Jinja2 website
authored
10 <title>{% block title %}{% endblock %}</title>
11 <ul>
12 {% for user in users %}
13 <li><a href="{{ user.url }}">{{ user.username }}</a></li>
14 {% endfor %}
15 </ul>
16
17 **Features:**
18
19 - sandboxed execution
20 - powerful automatic HTML escaping system for XSS prevention
21 - template inheritance
22 - compiles down to the optimal python code just in time
23 - optional ahead of time template compilation
24 - easy to debug. Line numbers of exceptions directly point to
25 the correct line in the template.
26 - configurable syntax
27
89f61fd @mitsuhiko Yay. PDF docs for Jinja2
authored
28 .. include:: contents.rst.inc
9d472df @mitsuhiko added style for html documentation
authored
29
ed98cac @mitsuhiko some documentation updates
authored
30 If you can't find the information you're looking for, have a look at the
cd95414 @joshmoore Minor type: s/of/or/
joshmoore authored
31 index or try to find it using the search function:
ed98cac @mitsuhiko some documentation updates
authored
32
9d472df @mitsuhiko added style for html documentation
authored
33 * :ref:`genindex`
ed98cac @mitsuhiko some documentation updates
authored
34 * :ref:`search`
Something went wrong with that request. Please try again.