3 ms·
A tiny bit of webdev-side dynamicism can really help with managing visitor-side static websites built on .html files in directories. If you run your own webser
by superkuh 2y ago
A tiny bit of webdev-side dynamicism can really help with managing visitor-side static websites built on .html files in directories.
If you run your own webserver and write HTML then check out server side includes. Being able to include .html fragments in other .html files means no need to edit the same bit in dozens of .html files (ie, left_menu.html, footer.html, etc). And since SSI hasn't really changed in 20 years the major implementations (nginx, apache, etc) have basically nill attack surface or mantainence burden. And there's no "rebuilding" or anything that's not HTML markup to maintain.
HTML+webserver SSI is just more HTML but without the redundant editing.
- mattl 2y agoSadly Kibo’s site uses SSI and is now totally trashed as a result. http://www.kibo.com http://www.kibo.com
- artps 2y agoAbsolutely agree. Just for fun, I recently implemented SSI using Cloudflare Workers [1] — but with a twist to feel like it's from 2025. It's a bit of a shitcode experiment, but I really wanted to recapture that early hacking spirit. [1] https://github.com/artps/ssi https://github.com/artps/ssi