5 ms·
Awesome to finally have nesting. The way I see it, this took 10 years longer than it should have. I feel the only big thing missing from the vanilla stack for
by a1371 4y ago
Awesome to finally have nesting. The way I see it, this took 10 years longer than it should have.
I feel the only big thing missing from the vanilla stack for me right now is a template element that multiple html files can share. Just like how you make a blog header in Jekyll or Hugo and it adds it on all your blog posts get the header. I haven't found an easy way of doing that if I have a bunch of html pages.
- nightpool 4y agowell, the classic solution has always been to use an iframe :p
- a1371 4y agoI don't know if that's actually an ok method or not, but I thought of that and looked around for it with little luck
- alxmng 4y agoThat's what an iframe is? I guess there could be a partial element that works like <partial href="header.html" /> but if it's referencing HTML, what about JavaScript or CSS it includes? That's exactly what iframe handles.
- robgibbons 4y agoWhat you're asking for is called Server-Side Includes, it's been a feature of Apache for ages, but is also supported by Nginx and other servers.
- miragecraft 4y agoWe had it briefly in the form of HTML imports, but the powers that be removed it because it’s not powerful enough for JavaScript/web apps development; totally ignoring the fact that the web isn’t just about apps.