--TEST-- macro with arbitrary arguments --TEMPLATE-- {% from _self import test1, test2 %} {% macro test1(var) %} {{- var }}: {{ varargs|join(", ") }} {% endmacro %} {% macro test2() %} {{- varargs|join(", ") }} {% endmacro %} {{ test1("foo", "bar", "foobar") }} {{ test2("foo", "bar", "foobar") }} --DATA-- return [] --EXPECT-- foo: bar, foobar foo, bar, foobar
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 |
|