projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3fbe8d8
)
fixed typo in doc (closes #604)
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 19 Jan 2012 09:31:26 +0000 (10:31 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 19 Jan 2012 09:31:26 +0000 (10:31 +0100)
doc/api.rst
patch
|
blob
|
history
diff --git
a/doc/api.rst
b/doc/api.rst
index
5f0da7b
..
ebfef3a
100644
(file)
--- a/
doc/api.rst
+++ b/
doc/api.rst
@@
-329,9
+329,9
@@
You can also change the escaping mode locally by using the ``autoescape`` tag:
.. code-block:: jinja
{% autoescape true %}
- {% var %}
- {% var|raw %} {# var won't be escaped #}
- {% var|escape %} {# var won't be doubled-escaped #}
+ {{ var }}
+ {{ var|raw }} {# var won't be escaped #}
+ {{ var|escape }} {# var won't be doubled-escaped #}
{% endautoescape %}
.. warning::