3 ms·
I'm doing something similar, except with Stimulus.js and htmx. (Alpine's CSP support story is too weird for me to want to deal with.) If you're using Django Te
by aaronbrethorst 2y ago
I'm doing something similar, except with Stimulus.js and htmx. (Alpine's CSP support story is too weird for me to want to deal with.)
If you're using Django Template Language, I highly, highly recommend using https://django-cotton.com https://django-cotton.com to create high level UI components to encapsulate common functionality.
- WD-42 2y agoI chose Alpine mostly because the exiting code is in Vue, and Alpine maps really closely to Vue. For the few components where I need to reach for it (lots of client side state) I can copy over verbatim many of the Vuejs components into Alpine, which is a huge boon to the whole refactoring process. Cotton is really nice!
- pier25 2y agoI really like the idea of Stimulus but I wish it was a bit more reactive and less verbose.