Replies: 1 comment 1 reply
-
The big question with this is: what would be the lifetime of that? Today the state's lifetime is a bit complicated as for instance extending, including and macro invocations will crate their own state. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Big user of minijinja, I'm in the need of using async functions in the
add_function
. I saw different examples, with impl Object. I find this solution difficult and I think most of it could be resolved if we added custom state a la axum.Environement::<MyCustomState>::with_state(env,state)
Is this something that could be integrated or it's a no go ?
Beta Was this translation helpful? Give feedback.
All reactions