服务器端示例

GitHub 上有许多将 htmx 与服务器端框架集成的示例。一般来说,大多数服务器端框架已经很好地设置为与 htmx 集成 - 毕竟,它们中的大多数早在 JSON 流行之前就已渲染 HTML。

¥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 JSON became popular.

不同的框架和平台可能提供用于安装 htmx 的替代系统 - 例如,在 Java / JVM 生态系统中,WebJars 允许将 npm 包与流行的 Java 构建工具(如 Maven 和 Gradle)一起使用。

¥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.

这些示例可能会让你更轻松地在所选平台上开始使用 htmx。

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

常规资源

¥General Resources

Julia

JavaScript

Node.js

hapi

Python

Django

FastAPI

Flask

py4web

Java

Javalin

Spring Boot

Quarkus

ColdFusion (CFML - 一种 JVM 语言)

¥ColdFusion (CFML - a JVM Language)

CFWheels 框架

¥CFWheels Framework

C#

ASP.NET Core

Blazor

Prolog

Lisp

Clojure

Ruby

Rails

Sinatra

Rust

Scala

http4s

zio-http

Kotlin

Ktor

https://github.com/Rattlyy/htmx-ktor

Http4k

Julia

OCaml

PHP

CodeIgniter 4

Laravel

Symfony

Elixir

Phoenix

带插件的 Bandit 应用

¥Bandit with Plug Application

F#

Giraffe

Feliz.ViewEngine.Htmx

Falco.Htmx

Suave(带 Feliz)

¥Suave (with Feliz)

Go

templ

elem-go

htmgo

Delphi

DelphiMVCFramework

带有 Pas2JS 的 FreePascal

¥FreePascal with Pas2JS