I used to build my homepage with make and it’d just cat head.html $@ tail.html or something for each of the actual pages
Comment on php deez nutz
Skullgrid@lemmy.world 1 day agoI mean, I can do fucking anything with Javascript, but the point is
- what’s the minimal effort I can use to just replace <?include menu.php>
- What about people like @KernelTale@programming.dev who have JS off? I should be able to do some kind of replacement using just HTML or something that doesn’t use Iframes or whatever.
I’m sure there are just right solutions to this, but I’m too busy with a shitload of other things I have to keep on top of.
bravesirrbn@lemmy.world 1 day ago
Skullgrid@lemmy.world 1 day ago
I aint generating my entire website every time I change the menu chief
fodor@lemmy.zip 1 day ago
Right right. Just have a script that does it for you.
fodor@lemmy.zip 1 day ago
Hey, no need to use JS, but if all you want is a menu, here’s how I do it. As easy as PHP.
<body><script src=“header.js”></script>