Skip to content
Myr

Automated merge with ssh://team@pocoo.org/jinja2-main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parents 0a2ac69, 3863b65 · Browse files · 3 files+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+3 added−4 removed

  • other:+3 added−4 removed

3 files+3 added−4 removed

modified:docs/api.rst-1 removed
203 unmodified lines
204file system. The environment will keep the compiled modules in memory like205Python's `sys.modules`. Unlike `sys.modules` however this cache is limited in206size by default and templates are automatically reloaded.207All loaders are subclasses of :class:`BaseLoader`. If you want to create your208208own loader, subclass :class:`BaseLoader` and override `get_source`.209210.. autoclass:: jinja2.loaders.BaseLoader211 :members: get_source, load
160 unmodified lines
modified:docs/switching.rst+2 added-2 removed
126 unmodified lines
127~~~~~~~~~~128129In Django you can use the following constructs to check for equality::130131 {% ifequals foo "bar" %}131 {% ifequal foo "bar" %}132 ...133 {% else %}134 ...135 {% endifequals %}135 {% endifequal %}136137In Jinja2 you can use the normal if statement in combination with operators::138139 {% if foo == 'bar' %}
82 unmodified lines
modified:docs/templates.rst+1 added-1 removed
210 unmodified lines
211`for`, `if`, `elif` etc.) may end with a colon::212213 # for item in seq:214 ...215 # endif215 # endfor216217218.. _template-inheritance:219
802 unmodified lines