this post was submitted on 01 Jul 2023
0 points (NaN% liked)

Rust

6005 readers
3 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
 

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

top 4 comments
sorted by: hot top controversial new old
[–] LPThinker@lemmy.world 0 points 1 year ago (1 children)

My go to for static content is astro.js. It gives a really nice developer experience that is really just writing HTML but with the quality of life of reusable "components", all with 0 JS by default.

[–] dukk@programming.dev 1 points 1 year ago

Ultimately, I ended up using Astro, Rust was giving me too much pain for no tangible gain.

[–] daluca@feddit.nz 0 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] heartlessevil@lemmy.one 1 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.