projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3a6ffbb
)
fix typo 'in' operator
author
Ralph KEMPS
<thewholelifetolearn@gmail.com>
Wed, 6 Nov 2013 09:39:15 +0000 (10:39 +0100)
committer
Ralph KEMPS
<thewholelifetolearn@gmail.com>
Wed, 6 Nov 2013 09:39:15 +0000 (10:39 +0100)
Fixed a small typo in the negative 'in' test operator
doc/templates.rst
patch
|
blob
|
history
diff --git
a/doc/templates.rst
b/doc/templates.rst
index
2905023
..
a6a56d0
100644
(file)
--- a/
doc/templates.rst
+++ b/
doc/templates.rst
@@
-745,7
+745,7
@@
Tests can be negated by using the ``is not`` operator:
.. code-block:: jinja
- {% if post.status is constant('Post::PUBLISHED') %}
+ {% if post.status is not constant('Post::PUBLISHED') %}
{# is equivalent to #}
{% if not (post.status is constant('Post::PUBLISHED')) %}