turbo-django icon indicating copy to clipboard operation
turbo-django copied to clipboard

HTMX-like actions for turbo-django

Open nerdoc opened this issue 2 years ago • 1 comments

This is just a question/idea. I came across many frameworks in the last year, from sockpuppet to Unicorn and HTMX/Django. one of the things all of them offer is that actions like triggering responses can be started from any HTML element, not just by forms/buttons and anchors. E.g. changing the value of a checkbox could trigger a frame reload. This is not conveniently possible with turbo-django - however, it could be done IMHO with stimulus - or something like alpine.js.

Is there any chance that this will be possible with turbo-django?

nerdoc avatar Jun 09 '22 19:06 nerdoc

Interesting. Since it's not something the native Turbo library supports by default I don't see this fitting well into the Turbo Django library. You are correct it would be implemented with Stimulus if using the full Hotwire library.

scuml avatar Sep 15 '22 14:09 scuml