1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--TEST-- macro --TEMPLATE-- {% from _self import test %} {% macro test(a, b = 'bar') -%} {{ a }}{{ b }} {%- endmacro %} {{ test('foo') }} {{ test('bar', 'foo') }} --DATA-- return array(); --EXPECT-- foobar barfoo