mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-29 22:11:17 +00:00

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.
6 lines
117 B
HTML
6 lines
117 B
HTML
{% import "macro-recursion-3.html" as next %}
|
|
|
|
{% macro some_macro %}
|
|
{% call next::some_macro %}
|
|
{% endmacro %}
|