Function dilla_renderer::engine::init_jinja_environnement
source · pub(crate) fn init_jinja_environnement() -> Environment<'static>
Expand description
Initializes a Jinja environment with various filters, functions, globals, and sets a formatter to render Maps in templates. Goal is to instantiate only once the env for the whole payload request.
Returns
A Minijinja Environment
object is being returned.