1

Instead of using:

{% ... %}
{% ... %}
{% ... %} 

For each line, i'd like to know if there is a way to do something like:

{%

...
...
...

%}
2

You can't execute multiple statements inside of a single {% %} block.

You can have a single statement that is multi-line.

See here for more info: https://stackoverflow.com/questions/31111516/does-twig-support-executing-multiple-statements-inside-a-single-block

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.