Wrote my first bit of code that wasn't HTML/CSS or from a tutorial for the first time in 30 odd years.

Last time was when I made a ceefax [1] version of The Hitch-Hikers Guide to the Galaxy [2] in BBC BASIC [3]!!

[1] en.wikipedia.org/wiki/Ceefax
[2] en.wikipedia.org/wiki/The_Hitc
[3] en.wikipedia.org/wiki/BBC_BASI


This time it was a small Ruby file that attaches a header and a footer to static .html files and dumps them in a production folder.

Means I can still handwrite all my pages but then update the headers and footers across the board in one foul swoop.

(secretly proud of myself)

· · Web · 1 · 0 · 2

@minimaldotclick You should be proud! However, I feel obliged to mention that Server Side Includes are available on almost every web server and is very underused.

As simple as this (no build step needed):
<!-- virtual="header.html" -->


@mikael where’s the fun in that? 🤣🤣

I knew you could do includes with .php files. Never even considered you could do it with .html files. Always thought is was because of the dynamic part.

Thanks for the heads up. 👍🏼

Sign in to participate in the conversation

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.