1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--TEST-- "macro" tag supports name for endmacro --TEMPLATE-- {% import _self as macros %} {{ macros.foo() }} {{ macros.bar() }} {% macro foo() %}foo{% endmacro %} {% macro bar() %}bar{% endmacro bar %} --DATA-- return array() --EXPECT-- foo bar