projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8bdf02a
)
added a caution about nested hashes in the docs
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 30 Dec 2010 10:40:02 +0000 (11:40 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 30 Dec 2010 10:40:02 +0000 (11:40 +0100)
doc/templates.rst
patch
|
blob
|
history
diff --git
a/doc/templates.rst
b/doc/templates.rst
index
589e799
..
b3ae80c
100644
(file)
--- a/
doc/templates.rst
+++ b/
doc/templates.rst
@@
-969,6
+969,13
@@
Arrays and hashes can be nested:
{% set foo = [1, {"foo": "bar"}] %}
+.. caution::
+
+ When defining nested hashes, be careful to put at least one whitespace
+ between the two closing curly braces like in this example: ``{ 'foo: {
+ 'bar': 'foobar' } }``. If not, Twig will interpret ``}}`` as the end of
+ the expression.
+
Math
~~~~