Lines Matching refs:set
1 ``set``
5 the ``set`` tag and can have multiple targets.
11 {% set foo = 'bar' %}
13 After the ``set`` call, the ``foo`` variable is available in the template like
26 {% set foo = [1, 2] %}
27 {% set foo = {'foo': 'bar'} %}
28 {% set foo = 'foo' ~ 'bar' %}
34 {% set foo, bar = 'foo', 'bar' %}
38 {% set foo = 'foo' %}
39 {% set bar = 'bar' %}
41 The ``set`` tag can also be used to 'capture' chunks of text:
45 {% set foo %}
64 {% set foo = item %}
73 {% set foo = "" %}
75 {% set foo = item %}