Hacker News new | ask | show | jobs
by mesarvagya 1276 days ago
FYI: https://htmx.org/server-examples/
1 comments

Thanks, a couple of these look like rendering sub-templates, one actually just loads sub-templates over ajax even on first page render...

I'm thinking to have a function in the view that collects the context and renders a sub-template - and then making these functions callable from within a top-level template or from an ajax request... Seems simple enough.