Files
2026-07-30 13:53:24 +02:00

23 lines
367 B
Plaintext

--TEST--
macro
--TEMPLATE--
{% import _self as test %}
{% from _self import test %}
{% macro test(a = null, b = null) -%}
{{ a|default('a') }}<br />
{{- b|default('b') }}<br />
{%- endmacro %}
{{ test.test() }}
{{ test() }}
{{ test.test(1, "c") }}
{{ test(1, "c") }}
--DATA--
return []
--EXPECT--
a<br />b<br />
a<br />b<br />
1<br />c<br />
1<br />c<br />