This project aims for HTMX frontend with (fast)CGI backend written in Object Pascal using the FreePascal compiler and libs. It can also be compiled as a standalone server.
HTMX official website and docs
FreePascal CGI docs
YOU MUST HAVE at least FreePascal compiler installed on your environment (and available in your path) and Python 3 (to use as local web server) in order to make this CGI + HTMX basic template/boilerplate to work.
.scriptsbuildDev.ps1
./scripts/buildDev.sh
http://localhost:3000
dev
folder and upload to your serverIf you're talking about Pas2JS in the backend as a NodeJS/Bun app, yes. Any backend that receives requests and outputs HTML can be used.
Besides being possible, using HTMX usually means using less JavaScript, so mixing Pas2JS (Pascal transpiled to JavaScript) would go against it and can lead to unnecessary problems and added size. But all depends on what you need to do.