skyfaller 4 days ago

One modern approach would be Caddy Server's templates, using Golang templating:

https://caddyserver.com/docs/modules/http.handlers.templates

The "include" function should do the job:

{{include "path/to/file.html"}}