Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.36k stars 280 forks source link

Macro from another macro #914

Open xpe opened 2 months ago

xpe commented 2 months ago

From https://zola.discourse.group/t/macros-questions/277

zoosky wrote:

I tried to call from a macro another macro. Is this allowed?

@Keats wrote:

Not currently. It’s something that might be added when pest v3 is released and I rewrite the parser.

Is this still the case? Mind adding a note in the docs? (Or I can help.)

Keats commented 2 months ago

I believe it should already work in v2 (https://github.com/Keats/tera2) but I don't remember... I will have to check