htmx Server-Side Examples

There are many examples of integrating htmx with server-side frameworks available on GitHub. Generally speaking, most server-side frameworks are already pretty well set up to integrate with htmx - after all, most of them were rendering HTML long before before JSON became popular.

Different frameworks and platforms may offer alternative systems for installing htmx - for example, in the Java / JVM ecosystem, WebJars allows the use of npm packages with popular Java build tools such as Maven and Gradle.

These examples may make it a bit easier to get started using htmx with your platform of choice.

General Resources

JavaScript

Node.js

hapi

Python

Django

FastAPI

Flask

py4web

Java

Spring Boot

Quarkus

C#

ASP.NET Core

Prolog

Clojure

Ruby

Rails

https://github.com/rootstrap/htmx-rails

Sinatra

Julia