DEV Community

htmx and HTML Driven Development

Rajasegar Chandran on April 11, 2021

In this post, I am going to share some of my experiences and the benefits of using htmx to build modern, rich and interactive web applications driv...
Collapse
 
sltech profile image
Stein Lundbeck

Great article! I'm looking into ASP.NET Core Blazor and wonder if I maybe should go for Htmx instead

Collapse
 
guettli profile image
Thomas Güttler

Thank you for this article. HTMX sounds like a revolution: back to the place where the magic started several years ago. Refreshing.

Collapse
 
bacloud22 profile image
aben

it is the react fever and SPAs that made us forget about the basics.

Collapse
 
lepinekong profile image
lepinekong

Thanks never heard of it before :)

Collapse
 
hhvdblom profile image
hhvdblom

I wrote my own Ajax library that does the same. Change all calls in Ajax calls. I put all the Html on the innerHTML DOM. Dont know how htmx does the trick. Must be like that because how else would you change parts of the screen.

Collapse
 
spirix3 profile image
Nick Muoh

How did you think this compares to Ruby on Rails turbo links?

Collapse
 
rajasegar profile image
Rajasegar Chandran

Because both hx-boost and Turbolinks intercept anchor links and send ajax request for the body content and swap them.

Collapse
 
hhvdblom profile image
hhvdblom • Edited

If you use a so called masterpage and have a tag in it for the partials you can use innerHTML to swap those parts and voila you have a SPA. Of course you use Ajax calls for this because a normal link would switch the whole page content and thats not what you want.

Thread Thread
 
raglandcodes profile image
Ragland Asir

I think this site does something similar

web.dev/app-shell-ux-with-service-...

Thread Thread
 
bacloud22 profile image
aben

are they really using Google chrome prograssive apps? looks like witchcraft to me!

Collapse
 
codingwithbrendon profile image
Coding With Brendon

I have a good rebuttle here!

dev.to/codingwithbrendon/revisitin...