Files
tree-sitter-django/test/corpus/verbatim.txt
T
2026-08-11 17:41:09 -05:00

84 lines
1.2 KiB
Plaintext

==================
Verbatim Basic
==================
{% verbatim %}{{ hello }}{% endverbatim %}
---
(template
(content)
(verbatim_group
name: (push_verbatim)
(verbatim_content)
(pop_verbatim))
(content))
==================
Verbatim Empty
==================
{% verbatim %}{% endverbatim %}
---
(template
(content)
(verbatim_group
name: (push_verbatim)
(pop_verbatim))
(content))
==================
Verbatim Ignores Tags
==================
{% verbatim %}
{{ hello }}
{% for x in y %}
{% endverbatim %}
---
(template
(content)
(verbatim_group
name: (push_verbatim)
(verbatim_content)
(pop_verbatim))
(content))
==================
Verbatim With Name
==================
{% verbatim myblock %}{{ hello }}{% endverbatim myblock %}
---
(template
(content)
(verbatim_group
name: (push_verbatim)
(verbatim_content)
(pop_verbatim))
(content))
==================
Verbatim With Name Allows Nested Unnamed Verbatim
==================
{% verbatim myblock %}
Avoid template rendering via the {% verbatim %}{% endverbatim %} block.
{% endverbatim myblock %}
---
(template
(content)
(verbatim_group
name: (push_verbatim)
(verbatim_content)
(pop_verbatim))
(content))