Skip to content
Myr

fix typo

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

authored by Andy McKay · committed by Andy McKay · parent a80d2f5 · Browse files · 1 file+3 added−3 removed
This commit

State

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

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/templates.rst+3 added-3 removed
42 unmodified lines
4344This covers the default settings. The application developer might have45changed the syntax from ``{% foo %}`` to ``<% foo %>`` or something similar.4647There are two kinds of delimiers. ``{% ... %}`` and ``{{ ... }}``. The first47There are two kinds of delimiters. ``{% ... %}`` and ``{{ ... }}``. The first48one is used to execute statements such as for-loops or assign values, the49latter prints the result of the expression to the template.5051.. _variables:
112 unmodified lines
164165 {% for item in seq -%}166 {{ item }}167 {%- endfor %}168 168169This will yield all elements without whitespace between them. If `seq` was170a list of numbers from ``1`` to ``9`` the output would be ``123456789``.171172If :ref:`line-statements` are enabled they strip leading whitespace
1000 unmodified lines
11731174 .. attribute:: current11751176 Returns the current item.1177 11771178 **new in Jinja 2.1**11791180.. class:: joiner(sep=', ')1181
185 unmodified lines