News for hackers. Stuff that matters.
Re:Seeking an Answer: Why can't HTML alone do includes? by tgv on Saturday May 03, 2025 @12:40PM (#43880241)
I think it feels off because an HTML file can include scripts, fonts, images, videos, styles, and probably a few other things. But not HTML. It can probably be coded with a custom element (<include src=.../>). I would be surprised if there wasn't a github repo with something similar.
Re:Seeking an Answer: Why can't HTML alone do includes? by benstigsen on Sunday May 04, 2025 @08:34AM (#43886356)
I created something like this relatively recently. The downside is of course that it requires JavaScript.

https://github.com/benstigsen/include.js

Re:Seeking an Answer: Why can't HTML alone do includes? by mildred593 on Sunday May 04, 2025 @01:17PM (#43888001)
I also improved an existing custom component for this : https://amc.melanie-de-la-salette.fr/polyfill.js