Show HN: HTML-Include: Include HTML in HTML

2 franze 4 5/3/2025, 8:06:40 PM include.franzai.com ↗

Comments (4)

franze · 3d ago
A follow up to https://news.ycombinator.com/item?id=43878728

> Why can't HTML alone do includes?

A quick Chrome Extension Polyfill for all those who are curious.

theandrewbailey · 3d ago
Any reason that the tag isn't a void element, i.e. that it must be

    <include src="path/to/fragment.html"></include>
instead of

    <include src="path/to/fragment.html"/>

?
indigodaddy · 3d ago
So visitors need a chrome extension?
perilunar · 3d ago
Chrome extension seems like the wrong way to do this. Should be a web component or just a simple JS file.