Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ Note the ``r`` right after the opening braces.

**VERY IMPORTANT :** Variables must not contains characters like ``<``, ``>`` and ``&`` unless using Escaping_

Dictionary keys named like dictionary methods must use bracket notation. For
example, use ``{{ soil['pop'] }}`` for ``context = {'soil': {'pop': 2}}``.
``{{ soil.pop }}`` resolves to the dictionary ``pop`` method instead of the
``'pop'`` key. With autoescaping disabled, rendering that method representation
can produce invalid XML; ``autoescape=True`` prevents the invalid XML but does
not select the dictionary key for you.

**IMPORTANT :** Always put space after a starting var delimiter and a space before the ending one :

Avoid::
Expand Down