Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am working on a Awesome-Python-HTMX, seeking your feedback #43

Closed
benjamin-kirkbride opened this issue Apr 25, 2023 · 7 comments
Closed

Comments

@benjamin-kirkbride
Copy link

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?

@clokep
Copy link
Owner

clokep commented Apr 25, 2023

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.

@clokep
Copy link
Owner

clokep commented Apr 25, 2023

(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.)

@clokep clokep closed this as completed Apr 25, 2023
@benjamin-kirkbride
Copy link
Author

Understood. https://www.bugbytes.io/posts/template-fragments-with-django-and-htmx/ pointed me in this direction. Thanks for the project!

@clokep
Copy link
Owner

clokep commented Apr 25, 2023

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!

@benjamin-kirkbride
Copy link
Author

https://github.com/spookylukey/django-htmx-patterns/ uses it too!

@clokep
Copy link
Owner

clokep commented Apr 25, 2023

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

@benjamin-kirkbride
Copy link
Author

Yes, it absolutely is! Email is arguably a form of hypertext after all, so much of the same principles would apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants