mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
22 lines
272 B
Plaintext
22 lines
272 B
Plaintext
--TEST--
|
|
macro call inside "cache" tag
|
|
--TEMPLATE--
|
|
{% macro out(bar) %}{{ bar }}{% endmacro %}
|
|
1
|
|
{% cache "testmacro1" ttl(3) %}
|
|
2
|
|
{{ _self.out(3) }}
|
|
{{ _self.out(4) }}
|
|
{% endcache %}
|
|
5
|
|
{{ _self.out(6) }}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|