mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-20 14:36:57 +00:00
added some more tests for the filename autoescape strategy
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
"filename" autoescape strategy
|
||||
--TEMPLATE--
|
||||
{{ br -}}
|
||||
{{ include('index.html.twig') -}}
|
||||
{{ include('index.txt.twig') -}}
|
||||
--TEMPLATE(index.html.twig)--
|
||||
{{ br -}}
|
||||
--TEMPLATE(index.txt.twig)--
|
||||
{{ br -}}
|
||||
--DATA--
|
||||
return array('br' => '<br />')
|
||||
--CONFIG--
|
||||
return array('autoescape' => 'filename')
|
||||
--EXPECT--
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
Reference in New Issue
Block a user