Symfony’s UX Live and Phoenix’s LiveView are features that allow for pages to dynamically refresh their contents without doing full page refreshes and without relying on Javascript.

I’m currently “window shopping” for other langs and frameworks that achieve the same, so anything that needs Javascript is a no-go.

  • cosmicrose@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 days ago

    LiveView does use JavaScript code to subscribe to a web socket, parse and apply the page diff and send back events. You just don’t need to write your own JS to use most of its features. I know nothing about UX Live so I can’t comment on it. Sorry if that’s pedantic, but I’m interpreting “works without relying on JavaScript” as “works without any JS code running at all” which is not the case.

    With that out of the way, htmx is similar and one of my favorite tools for building dynamic apps without having to write a single line of my own JS.

    • Lysergid@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      I’m a big fan of htmx but had no chance to apply it in production systems. Did you? Can you share your experience?

      • cosmicrose@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        I haven’t had a chance to run it in production, no. But I did make an experimental branch where I replaced some pages of my old company’s production app (which is a React app) and was able to re-create all the necessary functionality in a lot less code. So stuff like authn and authz worked correctly, desktop notifications and sounds were working (with just a few likes of JS glue code), and I was able to replicate a reasonably complex set of UI updates.