HTMX? #695
Replies: 1 comment 2 replies
-
Hi @martin-braun . It is possible to have one backend to serve both the web and mobile versions, using HTMX templates for the web, and HXML templates for mobile. There's a section in our book Hypermedia Systems about this topic, check out https://hypermedia.systems/building-a-contacts-app-with-hyperview/#_one_backend_multiple_hypermedia_formats If you truly want to write the app once (including templates) and run on both mobile and web, there's another option. Since Hyperview is built on top of React Native, you can use the React Native for Web library to render your Hyperview app in HTML. We've experimented with this approach, there are a bunch of gotchas to have a nice-feeling web app, but it is possible. |
Beta Was this translation helpful? Give feedback.
-
I learned about hyperview through the hype of HTMX. I love the approach from HTMX and asked myself if there could be something similar for mobile apps. Taking hyperview into consideration I realized UI cannot be hybrid, I wonder if a transition layer is possible to blend HTMX with HXML.
The idea is to be able to write one backend to serve the web and mobile. Are the concepts similar enough to approach such a thing? Where would a translation layer reside? I assume the best direction would be HXML->HTMX, but where and how could this be implemented?
Beta Was this translation helpful? Give feedback.
All reactions