diff options
Diffstat (limited to 'vendor/twig/twig/doc/tags/verbatim.rst')
-rw-r--r-- | vendor/twig/twig/doc/tags/verbatim.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/twig/twig/doc/tags/verbatim.rst b/vendor/twig/twig/doc/tags/verbatim.rst new file mode 100644 index 00000000..fe61ca1b --- /dev/null +++ b/vendor/twig/twig/doc/tags/verbatim.rst | |||
@@ -0,0 +1,24 @@ | |||
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. \ No newline at end of file | ||