-- Leo's gemini proxy
-- Connecting to gemini.ctrl-c.club:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
Htmx encapsulates js code into HTML attributes. It enhances HTML, the hypermedia itself.
It seems to me like a very elegant solution, and very much inline with the original vision of the hypermedia.
An excerpt from the htmx site:
Why should only <a> and <form> be able to make HTTP requests?
Why should only click & submit events trigger them?
Why should only GET & POST methods be available?
Why should you only be able to replace the entire screen?
By removing these arbitrary constraints, htmx completes HTML as a hypertext
The examples are an excellent place to start reviewing the technology in more detail.
I'd say that it is an excellent tech to provide more flexible frontend to existing or new server site generated dynamic site.
E.g. if you have e.g. python/flask/jinja app, you could enhance your jinja templates with htmx. Combine that with jinja-partials and you'd have maximum frontend kick, while retaining the full power of your server side processing and templates, etc, etc.
https://dev.to/nicholas_moen/what-i-learned-while-using-django-with-htmx-and-alpine-js-24jg
-- Response ended
-- Page fetched on Sun May 19 03:46:05 2024