Creating instructions with multiple instructions in TWIG

I wonder if there is a way to create multiple statements in TWIG

Example: two separate operators ...

{% set foo:bar %}
{% set baz:qux %}

      

in one operator

{%
    set foo:bar 
    set baz:qux
%}

      

+3


source to share


1 answer


No, you cannot. set

is the "tag", all things after are compiled with the Token for the "tag".



+1


source







All Articles