← Back to context Comment by recursive 5 days ago In the 90s, we used Server Side Includes (SSI) for this. Probably still works. 4 comments recursive Reply skyfaller 5 days ago One modern approach would be Caddy Server's templates, using Golang templating:https://caddyserver.com/docs/modules/http.handlers.templatesThe "include" function should do the job:{{include "path/to/file.html"}} ZYbCRq22HbJ2y7 4 days ago httpd, nginx, a number of other servers support SSIhttps://nginx.org/en/docs/http/ngx_http_ssi_module.htmlCaddy chose not to, I guess?https://caddy.community/t/caddy-update-on-ssi-server-side-in... alwillis 4 days ago You generally can’t use SSI on many popular platforms for static websites like Netlify, etc. 1 reply →
skyfaller 5 days ago One modern approach would be Caddy Server's templates, using Golang templating:https://caddyserver.com/docs/modules/http.handlers.templatesThe "include" function should do the job:{{include "path/to/file.html"}} ZYbCRq22HbJ2y7 4 days ago httpd, nginx, a number of other servers support SSIhttps://nginx.org/en/docs/http/ngx_http_ssi_module.htmlCaddy chose not to, I guess?https://caddy.community/t/caddy-update-on-ssi-server-side-in... alwillis 4 days ago You generally can’t use SSI on many popular platforms for static websites like Netlify, etc. 1 reply →
ZYbCRq22HbJ2y7 4 days ago httpd, nginx, a number of other servers support SSIhttps://nginx.org/en/docs/http/ngx_http_ssi_module.htmlCaddy chose not to, I guess?https://caddy.community/t/caddy-update-on-ssi-server-side-in... alwillis 4 days ago You generally can’t use SSI on many popular platforms for static websites like Netlify, etc. 1 reply →
alwillis 4 days ago You generally can’t use SSI on many popular platforms for static websites like Netlify, etc. 1 reply →
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"}}
httpd, nginx, a number of other servers support SSI
https://nginx.org/en/docs/http/ngx_http_ssi_module.html
Caddy chose not to, I guess?
https://caddy.community/t/caddy-update-on-ssi-server-side-in...
You generally can’t use SSI on many popular platforms for static websites like Netlify, etc.
1 reply →