18
Anyone have suggestions for a good Rust template engine?
(programming.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Try askama, it also has a crate to integrate actix-web called askama_actix. It's jinja like template engine
Can't beat askama. There are other Jinja-like templates but askama has best-in-class performance and compile time safety.
When you say "best in class performance", do you have particular benchmarks in mind?
I only found this one: https://github.com/rosetta-rs/template-benchmarks-rs
Askama was neither fastest not slowest. Purely based on benchmarks sailfish seems to be interesting as well
Is there any way to track values without a struct? Or in my specific case, I’m using a struct, but most of the values are in an
Option<String>
.