Vincent Prouillet
Vincent Prouillet
Yep, it should work
The way the template engine works, it will start rendering the base template (`base.html`) in all cases going through blocks. So if you define anything in the `base.html`, whether you're...
> What's wrong with the {{ self.block_name() }} syntax? I find it hard to understand what `self` is there. Can I also render imported macros that way? Or render variable...
Isn't that what https://docs.rs/fluent-templates/0.6.1/fluent_templates/ does?
It's planned to add that crate (or something else if needed) to Zola but this shouldn't be added to Tera itself imo. It got a bit delayed in Zola but...
None right now, got a bit side-tracked.
What would it look it? Any example in Jinja2/Django?
That's the main issue, if you start adding some regex support it is going to be hairy very fast :)
It doesn't have anything like that. I'm not planning to implement it myself since the usage is pretty narrow so it would have to come from a contributor
@HelloEdit if you are still interested in that I would take a PR for it