add more tests
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
==================
|
||||
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))
|
||||
Reference in New Issue
Block a user