mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
Tweak docs
This commit is contained in:
+3
-2
@@ -568,9 +568,10 @@ exist:
|
||||
{# keys as integer #}
|
||||
{ 2: 'foo', 4: 'bar' }
|
||||
|
||||
{# keys get the variable name when omitted #}
|
||||
{% set foo = 'foo' %}
|
||||
{# keys can be omitted if it is the same as the variable name #}
|
||||
{ foo }
|
||||
{# is equivalent to the following #}
|
||||
{ 'foo': foo }
|
||||
|
||||
{# keys as expressions (the expression must be enclosed into parentheses) -- as of Twig 1.5 #}
|
||||
{% set foo = 'foo' %}
|
||||
|
||||
Reference in New Issue
Block a user