Type safety #389
kellpossible
started this conversation in
Ideas
Type safety
#389
Replies: 3 comments 2 replies
-
The use case for this for me personally is to have user configurable/editable templates that are still type checked without requiring them to recompile the entire software. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Jinja is intentionally quite dynamically typed. I guess the complexity of type safety would approach the one of type script. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I created language server for minijinja last year, it's still not 100% type safe. It can catch some of bugs with warnings. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've yet to see a templating library for Rust which supports type safety for runtime parsed templates. This would be a killer feature if it were possible to do in minijinja. How could it be done however? Perhaps we can generate a schema for the template at compile time, and ensure that it is stored and associated with the templates which rely on it, and used for type checking when compiling the templates?
Beta Was this translation helpful? Give feedback.
All reactions