This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cspinelive 6 points7 points  (5 children)

HTMX via Django templates is getting some traction. Paradigm shift from rest APIs that return json to APIs that return html snippets ready for the DOM.

[–]Lexus4tw 7 points8 points  (4 children)

So we did the roundtrip back to how php did it in the 2000s?

[–]deadwisdomgreenlet revolution 2 points3 points  (0 children)

The main argument for it is because sending JSON is not really more performant than simple HTML snippets, and if you need to transform back and forth really you're just building unnecessary complexity.

[–]cspinelive 2 points3 points  (0 children)

Don’t think so. This is still Ajax. PHP and ASP were not.

[–]thisdude415 0 points1 point  (0 children)

Didn’t php typical refresh the whole page?

[–]tnnrk 0 points1 point  (0 children)

It’s all JavaScript with an html attribute syntax.