askama/testing/templates/nested-macro.html
Michael Pollind ce73e73720 feat: add caller pattern and adjust syntax to closer match jinja
Signed-off-by: Michael Pollind <mpollind@gmail.com>
2025-05-22 22:50:40 +02:00

12 lines
204 B
HTML

{%- macro child0() -%}
foo
{%- endmacro -%}
{%- macro child1() -%}
{% call child0() %}{% endcall %}
{%- endmacro -%}
{%- macro parent() -%}
{% call child1() %}{% endcall %}
{%- endmacro -%}