Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It’s not ideal, but t it does exist in pure html… and the OP didn’t seem to note it.

A bit of vanilla JavaScript with WebComponents is a few lines:

https://gomakethings.com/html-includes-with-web-components/

Edit: “t” was supposed to be the object tag.



> it does exist in pure html [...] JavaScript with WebComponents

You seem to have a rather original definition of "pure HTML".


Typo, from the numerous fat finger typos you see above. :)

An html only option that exists is using object. Replying to the miss of the OP in case others might find it suitable.

If a tiny bit of vanilla JavaScript can be tolerated, WebComponents appear to have a broad standardized approach that is not framework dependant.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: