Has anyone cleanly bolted htmx into Flask or another similar Python framework?
I typically use mako for templates and htmx partials or components or whatever you want to call them would seem to cleanly map to mako includes - but I'm not sure how I might connect the render context which is typically collected for the top-level page in a tidy way.
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.
I typically use mako for templates and htmx partials or components or whatever you want to call them would seem to cleanly map to mako includes - but I'm not sure how I might connect the render context which is typically collected for the top-level page in a tidy way.
Appreciate hearing others thoughts.