16

I'm running a server-side-rendered web server using Actix Web. Any suggestions for a client? All I really need is something fast and that I can use without breaking my neck (don't need any fancy VDOM, trying to ship minimal JS).

you are viewing a single comment's thread
view the rest of the comments
[-] daluca@feddit.nz 5 points 1 year ago* (last edited 1 year ago)

Try askama, it also has a crate to integrate actix-web called askama_actix. It's jinja like template engine

[-] heartlessevil@lemmy.one 3 points 1 year ago

Can't beat askama. There are other Jinja-like templates but askama has best-in-class performance and compile time safety.

[-] oleid@programming.dev 2 points 1 year ago

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

[-] dukk@programming.dev 1 points 1 year ago* (last edited 1 year ago)

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>.

this post was submitted on 01 Jul 2023
16 points (100.0% liked)

Rust

5777 readers
7 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS