askama/testing/templates/macro-recursion-2.html
René Kijewski 9336435859 derive: keep track of called macros
Recursive macro calls, direct and indirect, would cause a stackoverflow.

This PR lets the macro call handler keep track of the stack of called
macros we are currently in, so we can abort with an error message
instead of panicking.
2024-12-29 07:52:21 +01:00

6 lines
117 B
HTML

{% import "macro-recursion-3.html" as next %}
{% macro some_macro %}
{% call next::some_macro %}
{% endmacro %}