Closed benjamin-kirkbride closed 1 year ago
You don't mention htmx anywhere, did you make this with htmx (or a similar project) in mind?
No, I have not used HTMX. I was using this to template emails, mostly.
(I'm going to close this since it is kind of a meta question and there's no action to take in this repo. Feel free to keep the conversation going though.)
Understood. https://www.bugbytes.io/posts/template-fragments-with-django-and-htmx/ pointed me in this direction. Thanks for the project!
Understood. bugbytes.io/posts/template-fragments-with-django-and-htmx pointed me in this direction. Thanks for the project!
Thanks for the link! I hadn't seen it. 👍 I can definitely see how it could be used with HTMX though!
https://github.com/spookylukey/django-htmx-patterns/ uses it too!
Reading through https://htmx.org/essays/template-fragments/ and https://htmx.org/essays/locality-of-behaviour/ (from https://github.com/PyHAT-stack/awesome-python-htmx) it seems that this was the same problem I was facing though: I wanted a way to keep a subject, text, and HTML parts of an email together in the same template file. See https://github.com/vintasoftware/django-templated-email
Yes, it absolutely is! Email is arguably a form of hypertext after all, so much of the same principles would apply.
A few of us at PyCon this year got together and brainstormed a new Web Stack that we are calling PyHAT (Python, htmx, ASGI, TailwindCSS). The first thing we set out to do is create awesome-python-htmx; a collection of active tools/libraries/projects in that space. Your project seems like an obvious thing to include, as template fragmenting is extremely helpful in creating hypermedia driven applications.
You don't mention htmx anywhere, did you make this with htmx (or a similar project) in mind?