operator symbols into callbacks performing the default operator behavior.
This example shows how the power (``**``) operator can be disabled in
-Jinja2::
+Jinja::
from jinja2.sandbox import SandboxedEnvironment
{{ items|join:", " }}
-looks like this in Jinja2::
+looks like this in Jinja::
{{ items|join(', ') }}
No items!
{% endfor %}
-...looks like this in Jinja2::
+...looks like this in Jinja::
{% for item in items %}
{{ item }}
Cycle
~~~~~
-The ``{% cycle %}`` tag does not exist in Jinja2; however, you can achieve the
+The ``{% cycle %}`` tag does not exist in Jinja; however, you can achieve the
same output by using the `cycle` method on the loop context special variable.
The following Django template::
<li class="{% cycle 'odd' 'even' %}">{{ user }}</li>
{% endfor %}
-...looks like this in Jinja2::
+...looks like this in Jinja::
{% for user in users %}
<li class="{{ loop.cycle('odd', 'even') }}">{{ user }}</li>
undeclared = find_undeclared(node.body, ('caller', 'kwargs', 'varargs'))
if 'caller' in undeclared:
- # In older Jinja2 versions there was a bug that allowed caller
+ # In older Jinja versions there was a bug that allowed caller
# to retain the special behavior even if it was mentioned in
# the argument list. However thankfully this was only really
# working if it was the last argument. So we are explicitly