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

  • darcy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    i have used the handlebars crate, and it is great for really simple templating. it is extensible with ‘helpers’, but imo a bit annoying for more complex use.

  • Thinker@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    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.devOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

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

    • heartlessevil@lemmy.one
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

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