Skip to content

Commit ed7038e

Browse files
committed
Define macros at the template root in the cache macro fixture
1 parent 7f9714a commit ed7038e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extra/cache-extra/Tests/Fixtures/macro.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
macro call inside "cache" tag
33
--TEMPLATE--
44
{% macro macro_out(bar) %}{{ bar }}{% endmacro %}
5+
{% macro macro_in(bar) %}{{ bar }}{% endmacro %}
56
1
67
{% cache "testmacro1" ttl(3) %}
7-
{%~ macro macro_in(bar) %}{{ bar }}{% endmacro %}
88
2
99
{{ _self.macro_out(3) }}
1010
{{ _self.macro_in(4) }}

0 commit comments

Comments
 (0)