Replies: 4 comments
-
Yes it does. As a matter of fact, I'm developing an entire LOB app with HTMX and Loco, trying to do without a single line of JavaScript. So far so good. But of course, since HTMX works with HTML instead of JSON, the examples are not gonna help you. Your main public workhorse will be a bunch of HTML API's. Technically you don't need all those JSON API's (unless you need them for other purposes). However, I find that it is best to expose them anyway, because you're gonna need them anyway -- Loco uses Tera as a templating engine, which accepts JSON inputs. Therefore, you'll find that you're calling your JSON API in your HTML request handler, then rendering HTML for return. |
Beta Was this translation helpful? Give feedback.
-
@i1kaaasra This belongs in Q&A, not Announcements! |
Beta Was this translation helpful? Give feedback.
-
Is there an example of using HTMX with a templating engine like Tera? Like an example project out there? Anything would do but I'm having a tough time understanding exactly what the SSR templating engine should be giving to htmx, and what kind of static files should be served |
Beta Was this translation helpful? Give feedback.
-
There are a few things that I hate in Tera when working with HTMX:
However, I have since developed countermeasures to most of them... although I haven't written them up. Ping me if you need details, or have questions. |
Beta Was this translation helpful? Give feedback.
-
loco rs support htmx ???
Beta Was this translation helpful? Give feedback.
All reactions