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] https://en.wikipedia.org/wiki/Ceefax
[2] https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy
[3] https://en.wikipedia.org/wiki/BBC_BASIC
@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):
<!--#include 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. 👍🏼
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)