Hacker News new | ask | show | jobs
by john2x 1160 days ago
I'm hoping a future version will allow using hidden markup that's already in the DOM rather than fetching from the server.
1 comments

It's already supported with the client-side-templates extension [1]. HTMX can fetch JSON from the backend then calls e.g. nunjucks.render() with the data.

[1]: https://htmx.org/extensions/client-side-templates/

On a sufficiently long timeline we'll see full SPA frameworks on top of htmx ;)