Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o...
by nop_slide on Tuesday November 23, 2021 @11:43AM
(#29319974)
I don't think Alpine has any similar AJAX directives as HTMX.
[ Parent
| on HN ]
Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o...
by synergy20 on Tuesday November 23, 2021 @08:45PM
(#29326084)
that's the only piece messing indeed, alpine.js is following vue.js, both can use axios for ajax needs.
I honestly still don't see the point of htmx, to me alpine.js + axios can cover all the front needs, assuming backend returns json instead of html.
htmx is useful for django etc when it's returning html though, but new frameworks are more likely to return json instead.