Instead of using:
{% ... %}
{% ... %}
{% ... %}
For each line, i'd like to know if there is a way to do something like:
{%
...
...
...
%}
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityInstead of using:
{% ... %}
{% ... %}
{% ... %}
For each line, i'd like to know if there is a way to do something like:
{%
...
...
...
%}
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