projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1b1a6e7
)
fixed wrong version in the docs
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 30 Dec 2012 15:51:54 +0000 (16:51 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 30 Dec 2012 15:51:58 +0000 (16:51 +0100)
doc/templates.rst
patch
|
blob
|
history
diff --git
a/doc/templates.rst
b/doc/templates.rst
index
e45b7a8
..
93f3108
100644
(file)
--- a/
doc/templates.rst
+++ b/
doc/templates.rst
@@
-722,8
+722,8
@@
tests.
Other Operators
~~~~~~~~~~~~~~~
-.. versionadded:: 1.11.2
- Support for the extended ternary operator was added in Twig 1.11.2.
+.. versionadded:: 1.12.0
+ Support for the extended ternary operator was added in Twig 1.12.0.
The following operators are very useful but don't fit into any of the other
categories:
@@
-746,7
+746,7
@@
categories:
{{ foo ? 'yes' : 'no' }}
- {# as of Twig 1.11.2 #}
+ {# as of Twig 1.12.0 #}
{{ foo ?: 'no' }} == {{ foo ? foo : 'no' }}
{{ foo ? 'yes' }} == {{ foo ? 'yes' : '' }}