Closed rsevs3 closed 2 years ago
I have done some basic testing with the linked code and it seems to work right out of the gate. I generally have a core app that ties all the other apps together, here I just created a views/generic file structure. This way the imports follow the Django convention to assist with understanding what the new CBVs do.
Is your feature request related to a problem? Please describe. Django-HTMX does not add any functionality to CBVs that would be regularly used. This means that when using CBV, there is a lot of repeated code just to make it work.
Describe the solution you'd like Add in something like in the following repo:
https://github.com/Tiny-Tiny-App/django-htmx-extras
Describe alternatives you've considered The alternative is to manually put in HTMX checks on what template to load, depending on whether it has been requested by HTMX or not.
Additional context Add any other context or screenshots about the feature request here.