HTMx - tutorial part VI - Clean up
January 24, 2025
When I describe what HTMx does to people that has never heard about it I often end up telling them about the good old days when we wrote server-side rendered apps, but sadly that replaced the whole page. And then came SPA frameworks and all you got downloaded in the first page access was a <div id="app></div>
, then the app got rendered by JavaScript from JSON and the whole concept of the web, HTTP and REST got lost.
HTMx marries these two together. But showing the main.ejs
as it stands right now reminds me too much about the old days. Let’s clean it up, and we will soon see that it will look much like a modern SPA, with the huge difference that it is using server rendered HTML that and is easy to grasp.
This is the sixth post in a series that I’m making...