News for hackers. Stuff that matters.
Re:Entire website in a single HTML file by onion2k on Friday December 24, 2021 @02:27AM (#29671235)
HTML has that built in: https://developer.mozilla.org/en-US/docs/Web/Web_Components/...

You'd need some JS to make use of them though.

Re:Entire website in a single HTML file by Spivak on Sunday December 26, 2021 @05:36PM (#29697027)
This honestly looks like a huge PITA compared to even the worst static site generator’s syntax. Is this actually supposed to be used as end-developer templates?
Re:Entire website in a single HTML file by wishinghand on Friday December 24, 2021 @06:16PM (#29678718)
True, but keeping to the spirit of the comment I replied to, I’d prefer it to be HTML only. Something like <template src=“header.html”> and it just uses a relative or absolute path.