mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
21 lines
327 B
Plaintext
21 lines
327 B
Plaintext
--TEST--
|
|
nested macro calls with dynamic names use distinct compiled variables
|
|
--TEMPLATE--
|
|
{% import _self as m %}
|
|
|
|
{% macro wrap(x) -%}
|
|
[{{ x }}]
|
|
{%- endmacro %}
|
|
|
|
{% macro value() -%}
|
|
V
|
|
{%- endmacro %}
|
|
|
|
{% set outer = 'wrap' %}
|
|
{% set inner = 'value' %}
|
|
{{ m.(outer)(m.(inner)()) }}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
[V]
|