← Back to context

Comment by recursive

10 months ago

In the 90s, we used Server Side Includes (SSI) for this. Probably still works.

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"}}