2 ms·
The point of htmx is to introduce more flexible tools for interacting with the server through html. Instead of being limited to forms which redirect you to a ne
by bccdee 3y ago
The point of htmx is to introduce more flexible tools for interacting with the server through html. Instead of being limited to forms which redirect you to a new page when you click submit, you can send requests and dynamically replace parts of the page on arbitrary events.
You can use htmx to regularly send the server the current time and have it respond with an updated humanized timestamp, but that's not really what you want. You're looking for some client-side display sugar, which is not the type of problem htmx was designed to solve. You can just use a client-side javascript snippet. htmx complements js; it doesn't replace it.