Warning Twig version 2.x end of maintenance is scheduled for December 2023.
do
The do
tag works exactly like the regular variable expression ({{ ...
}}
) just that it doesn't print anything:
1
{% do 1 + 2 %}
do
The do
tag works exactly like the regular variable expression ({{ ...
}}
) just that it doesn't print anything:
1
{% do 1 + 2 %}