add https://github.com/EmilStenstrom/django-components
Opened this issue ยท 4 comments
the 'components' concept is probably the only things that I'm missing from vue/react world. Django-components tries to solve that. I don't know if that's directly related to python-htmx, but for me it surely is :)
Would love to learn of similar project for jinja2, as fastapi is my primary stack - if anyone heard anything, let's add this to the list as well :)
I started looking into this and will probably add it somewhere in the Readme, but wondering where it fits best.
I'm not sure if I've run into anything outside of Django that takes this approach, though off the top of my head, I might think of jinja-partials. Though that's probably not exactly what you're looking for?
Oh oops, looks like that library isn't in the Readme yet. I'll add that one now, but I do want a way to possibly highlight django-components, so I'll keep issue open for now.
@mixxorz https://github.com/mixxorz/slippers is also a solid contender for django componenting
@lolrenx - I was struggling to remember this one, though surely noticed it some time ago :) Thanks for sharing!
@tataraba - yeah I know jinja partials, but I guess it's not fully what the 'componenting' is expected to achieve. I'll be starting to work on my htmx-fastapi project some time in the future, maybe there are ways of porting django slippers to jinja2 without much hassle.
Thanks both for interesting discussion!
django-cotton has been my preferred choice for component templating with HTMX:
https://github.com/wrabit/django-cotton