3 ms·
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 y
by mattbillenstein 4y ago
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.
Appreciate hearing others thoughts.
- mesarvagya 4y agoFYI: https://htmx.org/server-examples/ https://htmx.org/server-examples/
- mattbillenstein 4y agoThanks, 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.