Closed gedw99 closed 1 year ago
Found a Rust one : https://github.com/richardanaya/wasm-service
I would love to have a look at a nice go package for htmx functionality, although I'm not sure I would use an external package when it is trivial to solve in a few lines of code.
I'm sorry, but I don't understand why you opened this issue. Can you please explain?
Yep you can easily use the htmx js as you say
I am adapting htmx to work for non web such as desktop and mobiles.
the data sent is xml and then client renders off the xml just how a browser renders off html.
the gui is taking the xml and rendering the gui using 2d and 3d canvas that works on web, desktop and mobile.
any standard web page can use the same code you have still. We are just using wasm and not js to do the stuff that mthx js libs do. It compiles with tiny go and runs as a service worker. so you can also cache html in the browser so that the server is offloaded. If any json doc changes on the server tha a user has cached in the client it will automatically be updated on the client using push.
so you get SSR as well a client side progressive rendering
It’s part of my Open Science project
The way you did it looks good.
I was thinking about writing a package for clients that does the htmx funcs.
might already be one …? Have took.
can then use it for traditional web ( as wasm ) but also with gio and Fyne.