mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
fixed markup
This commit is contained in:
+4
-4
@@ -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``
|
||||
|
||||
Reference in New Issue
Block a user