]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/macros/simple.test
gitignore vendor
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / macros / simple.test
1 --TEST--
2 macro
3 --TEMPLATE--
4 {% import _self as test %}
5 {% from _self import test %}
6
7 {% macro test(a, b) -%}
8 {{ a|default('a') }}<br />
9 {{- b|default('b') }}<br />
10 {%- endmacro %}
11
12 {{ test.test() }}
13 {{ test() }}
14 {{ test.test(1, "c") }}
15 {{ test(1, "c") }}
16 --DATA--
17 return array();
18 --EXPECT--
19 a<br />b<br />
20 a<br />b<br />
21 1<br />c<br />
22 1<br />c<br />