Warning Twig version 2.x end of maintenance is scheduled for December 2023.
verbatim
The verbatim
tag marks sections as being raw text that should not be
parsed. For example to put Twig syntax as example into a template you can use
this snippet:
1 2 3 4 5 6 7
{% verbatim %}
<ul>
{% for item in seq %}
<li>{{ item }}</li>
{% endfor %}
</ul>
{% endverbatim %}