News for hackers. Stuff that matters.
Re:HTMX is hard, so let's get it right by mpweiher on Monday August 04, 2025 @08:35AM (#44784950)
> The other is that the code of components is split in two, the part that is rendered on the first time, and the endpoint that returns the updated result.

Yeah, that also bothered me. To me it looks like the page (template) should fetch that partial from the same endpoint that will deliver the partial via the wire to HTMX.

Re:HTMX is hard, so let's get it right by L3viathan on Monday August 04, 2025 @08:47AM (#44785071)
You can do that if you want to. It'll just be slower.
Re:HTMX is hard, so let's get it right by mpweiher on Monday August 04, 2025 @09:18AM (#44785364)
Will it?

I haven't gotten around to it yet, but my plan is to use in-process REST with Objective-S, so that accessing the internal endpoint will be the cost of a function call.

The HTTP wrapper for external access is generic.