Twig
The flexible, fast, and securetemplate engine for PHP
do
Found a typo or an error? Want to improve this document? Edit it.
Need support or have a technical question? Ask support on Stack Overflow.
The do tag works exactly like the regular variable expression ({{ ... }}) just that it doesn't print anything:
{{ ... }}
1
{% do 1 + 2 %}