4 ms·
> htmx is one of those things, like SQLite on the server, that you will incessantly see on HN, but rarely see used at large profitable companies. This is true
by resoluteteeth 3y ago
> htmx is one of those things, like SQLite on the server, that you will incessantly see on HN, but rarely see used at large profitable companies.
This is true. However:
> Say you use python and Django. Why use htmx instead of Django templates?
This doesn't make sense and makes me think you might be confused about what htmx is. The purpose of htmx is precisely so you can just use things like django and render pages on the server but still make a website feel more like a modern website by replacing elements without having everything require a whole page reload and without having to write your own javascript code.
That said, I personally think there are reasons why approaches like what htmx does fell out of favor.
- endisneigh 3y agoI understand this, but my point is all the major frameworks have their equivalents to Hotwire, which don’t require you to even use JavaScript at all.
- resoluteteeth 3y agoI don't understand what you mean. Hotwire uses javascript internally just like htmx does and neither require you to write your own javascript. I'm not aware of django including a similar library, so if you want to take this approach with django I think you need to use htmx, but my impression is that hotwire and htmx are fairly equivalent.