--TEST-- macro --TEMPLATE-- {% import _self as test %} {% from _self import test %} {% macro test(a, b) -%} {{ 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 />
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
default_values.test | File | 209 B | 0644 |
|
nested_calls.test | File | 224 B | 0644 |
|
reserved_variables.test | File | 180 B | 0644 |
|
simple.test | File | 353 B | 0644 |
|
unknown_macro.test | File | 222 B | 0644 |
|
varargs.test | File | 374 B | 0644 |
|
varargs_argument.test | File | 280 B | 0644 |
|
with_filters.test | File | 215 B | 0644 |
|