Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / doc / tags / verbatim.rst
1 ``verbatim``
2 ============
3
4 .. versionadded:: 1.12
5     The ``verbatim`` tag was added in Twig 1.12 (it was named ``raw`` before).
6
7 The ``verbatim`` tag marks sections as being raw text that should not be
8 parsed. For example to put Twig syntax as example into a template you can use
9 this snippet:
10
11 .. code-block:: jinja
12
13     {% verbatim %}
14         <ul>
15         {% for item in seq %}
16             <li>{{ item }}</li>
17         {% endfor %}
18         </ul>
19     {% endverbatim %}
20
21 .. note::
22
23     The ``verbatim`` tag works in the exact same way as the old ``raw`` tag,
24     but was renamed to avoid confusion with the ``raw`` filter.