logoalt Hacker News

wild_eggtoday at 4:51 PM1 replyview on HN

Generally you don't even need to do the sub-routing in the handler. You can just render the entire page and have `hx-select` attributes pluck out the part that you want.


Replies

pphyschtoday at 5:14 PM

That is a good solution for reusing content across pages, but most of my HTMX usage is for fetching data that would otherwise delay first page load significantly, or for seamless interactivity. Very different use cases.