You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what you're doing is particularly common... normally with htmx I write views that are for htmx only. I haven't considered combining both boosting and fragment fetching for the same view.
Also, it's not a particularly complicated expression that you'd like to simplify, and in your example you only use it in one place?
I would like to see more people say they have this use case before considering adding it. For now you could add a custom subclass and middleware in your project as I wrote in #223.
I have a project with hundreds and hundreds of CBVs, and I was’nt using htmx at the beginning.
Rewrite everything from scratch would be a pain, so I was searching a solution to start using htmx gradually.
A discussion in the django channel of the htmx discord with people help me think about it.
But yes, you are right, keeping django_htmx the more minimalist possible and non opinionated is probably better.
Description
Hi Adam!
Thanks for this useful package.
Here is a pattern that could be useful in several places (views or templates) :
It helps pointing out when we really want to use a fragment template.
A real example here.
It could be interesting to add it a wrapper property, don’t know how to name it though (
unboosted
???)...If I would like to add it manually, it would mean patching
HtmxDetail
, or make a custom middleware with a subclass ofHtmxDetail
…The text was updated successfully, but these errors were encountered: