fixed markup

This commit is contained in:
Fabien Potencier
2011-12-26 11:32:17 +01:00
parent 4b8a0e5e7a
commit 5ee53cd550
+4 -4
View File
@@ -482,16 +482,16 @@ exist:
.. code-block:: jinja
# keys as string
{# keys as string #}
{ 'foo': 'foo', 'bar': 'bar' }
# keys as names (equivalent to the previous hash) -- as of Twig 1.5
{# keys as names (equivalent to the previous hash) -- as of Twig 1.5 #}
{ foo: 'foo', bar: 'bar' }
# keys as integer
{# keys as integer #}
{ 2: 'foo', 4: 'bar' }
# keys as expressions (the expression must be enclosed into parentheses) -- as of Twig 1.5
{# keys as expressions (the expression must be enclosed into parentheses) -- as of Twig 1.5 #}
{ (1 + 1): 'foo', (a ~ 'b'): 'bar' }
* ``true`` / ``false``: ``true`` represents the true value, ``false``