News for hackers. Stuff that matters.
Re:PostgREST: Providing HTML Content Using Htmx by intrasight on Monday December 18, 2023 @06:22PM (#38689784)
Not really. It just augments the hypermedia capabilities of HTML. Adds the missing semantics. You don't invoke library functions.
Re:PostgREST: Providing HTML Content Using Htmx by promiseofbeans on Monday December 18, 2023 @07:05PM (#38690112)
It still needs JS to work though
Re:PostgREST: Providing HTML Content Using Htmx by evilduck on Monday December 18, 2023 @10:51PM (#38691602)
Look up nontrivial examples on their own docs.

“Simple” form validation is a clusterfuck and that’s what they’re leading with.

Re:PostgREST: Providing HTML Content Using Htmx by sesm on Tuesday December 19, 2023 @07:35AM (#38694783)
Why HTMX advocates say 'augments the hypermedia capabilities of HTML' instead of 'another implementation of HTML-over-the-wire approach'? Placing hidden meaning into common words sounds very cult-ish.
Re:PostgREST: Providing HTML Content Using Htmx by recursivedoubts on Tuesday December 19, 2023 @01:53PM (#38699829)
we say this, because, more than other HTML-over-the-wire libraries, htmx focuses on generalizing the two core hypermedia controls, anchors and forms

i discuss this extensively in chapter 4 of our book:

https://hypermedia.systems/extending-html-as-hypermedia/

the tldr is that htmx generalizes:

- the event that triggers an HTTP request

- the element that triggers an HTTP request

- the type of the HTTP request

- the placement of the hypermedia response to that HTTP request

In this sense, htmx adds functionality to (or, more dramatically, "completes") HTML.

This is in contrast with, for example, https://unpoly.com, which also uses HTML-over-the-wire, but provides higher level concepts (e.g. layers) and isn't as focused on generalizing hypermedia controls. This has advantages, unpoly gives you more functionality out of the box, but puts it further way from being a pure conceptual HTML extension.