Replies: 1 comment 1 reply
-
I have actually been thinking about this for a long time, especially while I was doing work last year to move things like So yes, I am interested in this, but there's no active work on it. Additionally, if speed in Jinja is an issue, you should look into how you have the caches configured, and look into precompiling the templates. I also have vague ideas around improving the spec, parser, and compiler which could improve things in the long term. |
Beta Was this translation helpful? Give feedback.
-
I suppose this have low chances to happen, but that might be fun to discuss though.
I stumbled upon Armin Ronacher's minijinja project, that is a rewrite in Rust. The project announce to be kinda compatible with jinja
I have noticed that jinja is sometimes the performance bottleneck, notably in unit tests, so the Rust rewrite looks appealing.
Flask has a hard dependency towards jinja at the moment, but that would be awesome if it provided some kind of interface that could be filled either by jinja or minijinja.
I suppose this would require a lot of work making the code generic, and I am not sure what would be the performance benefit in production environments, but that would be cool :)
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions