Talked with @jaffathecake about the possibility of an HTML `<include>`.

Why doesn't it exist? Could it exist? *Should* it exist?

I'm a little obsessed with this.

https://shoptalkshow.com/668/

668: Jake Archibald on Native HTML Includes

Jake Archibald joins us to discuss HTML includes, potential solutions, and the implications of introducing such a feature. We talk about security concerns, performance implications, and community f…

ShopTalk
@chriscoyier @jaffathecake yes, of course it should exist. The TC39 takeover via modules misdirection has been a debacle. Everyone can see that now.
@slightlyoff @chriscoyier the thing devs want is different to HTML imports though

@jaffathecake @chriscoyier that's fine. We've had at least a decade to design it.

🦗🦗🦗

@chriscoyier the first website I ever made, every blog post was its own iframe… I tried to work around not knowing how to program.
@chriscoyier @jaffathecake I think that some time ago there was some proposal from Google about "portals", or maybe that was related to AMP?
Anyway, all of us have wanted HTML includes since the very beginning.
@alfonsoml @chriscoyier that was iframes with even more restrictions, so they could be promoted to the main document.
@chriscoyier @jaffathecake This was such a great episode (and I say that as someone who tends to fast-forward through most interview-based episodes).

@chriscoyier @jaffathecake The templating system I built uses exactly those semantics, literally an <include> tag 😀 https://rooseveltframework.org/docs/teddy/latest/usage/#includes

In fact the entire design philosophy of that templating system is to create tags that I wished existed in HTML natively.

That <include> tag implementation reflects the conversation you had on the podcast to some degree: it requires a complete tree and to use it you pass markup fragments to it as arguments.

Roosevelt web framework — Teddy templating engine — usage

The easiest web framework to learn and build apps with — Roosevelt is a web framework for Node.js based on Express that aims to reduce the complexity of your code as much as possible.