Vincent Prouillet
Vincent Prouillet
You can just overwrite the `get_env` filter with a no-op one in your Tera instance
It could be added as an opt-in built-in function in v2
I won't add it to v1 as I'd prefer not adding too much API that might be removed later.
It is feasible, just not on my roadmap as it is pretty niche imo
Ideally I would prefer having map creation be a built-in feature but that requires quite a lot of changes to the parser and I'm not too confident in `pest` right...
This is not supported, only plain strings are allowed (eg `{% extends "my_template" %}`) so we can rule out inheritance errors at compile time.
The issue is that we don't keep track of `include`s when rendering. This should be fixed in v2 and point exactly to where the error is.
I do want tests/filters/functions to be `Send` though. Would https://github.com/getzola/zola/blob/master/components/templates/src/global_fns/mod.rs (+ rayon) still work without too much overhead?
Yep, this will get changed for the next major version, probably no need to change it now though.