renamed the raw tag to verbatim to avoid confusion with the raw filter

This commit is contained in:
Fabien Potencier
2013-01-05 08:55:59 +01:00
parent 720b71a0b8
commit cd4ab0fde6
9 changed files with 97 additions and 21 deletions
@@ -0,0 +1,10 @@
--TEST--
"verbatim" tag
--TEMPLATE--
{% verbatim %}
{{ foo }}
{% endverbatim %}
--DATA--
return array()
--EXPECT--
{{ foo }}
@@ -0,0 +1,56 @@
--TEST--
"verbatim" tag
--TEMPLATE--
1***
{%- verbatim %}
{{ 'bla' }}
{% endverbatim %}
1***
2***
{%- verbatim -%}
{{ 'bla' }}
{% endverbatim %}
2***
3***
{%- verbatim -%}
{{ 'bla' }}
{% endverbatim -%}
3***
4***
{%- verbatim -%}
{{ 'bla' }}
{%- endverbatim %}
4***
5***
{%- verbatim -%}
{{ 'bla' }}
{%- endverbatim -%}
5***
--DATA--
return array()
--EXPECT--
1***
{{ 'bla' }}
1***
2***{{ 'bla' }}
2***
3***{{ 'bla' }}
3***
4***{{ 'bla' }}
4***
5***{{ 'bla' }}5***