DEV Community

Discussion on: Include HTML Inside of HTML - Just Like React Components

Collapse
 
fjones profile image
FJones • Edited

This strikes me as a very interesting use case for webcomponents over the (rather crude) method in htmlinclude.js. It also seems like this would hit quite a lot of CSP problems. E.g. I suspect you would struggle to load any script tags or external resources from the included file.

Collapse
 
lionelrowe profile image