mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-02 09:05:10 +00:00
15 lines
205 B
Plaintext
15 lines
205 B
Plaintext
--TEST--
|
|
macro
|
|
--TEMPLATE--
|
|
{{ _self.some_macro() }}
|
|
|
|
{% macro some_macro() %}
|
|
{% apply upper %}
|
|
{% if true %}foo{% endif %}
|
|
{% endapply %}
|
|
{% endmacro %}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
FOO
|