htmx on Sinatra
A brief course in the absolute basics of web development, using two minimalist libraries: Sinatra and htmx.
In this tutorial, we will look at how htmx makes dynamic web page updates possible, using a very simple Sinatra app for our backend.
htmx is a JavaScript library created by Carson Gross (Senior Software Engineer; Professor at the Montana State University CS Department). htmx is a successor to intercooler.js (in development since 2013), which grew organically out of a single JavaScript function.
htmx aims to revive the concept of HTML as true hypermedia — namely that:
hypertext = (representation of) information + action controls.