includerjs
v2.0.1
Published
A tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.
Downloads
8
Readme
Include HTML Files In HTML – Includer.js
Includer.js is a tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.
How to use it:
- Load the Includer.js library in the document.
<script src="https://unpkg.com/[email protected]/dist/index.js"></script>
- Add the component to the page and specify the path to the external HTML files.
<include src="header.html"></include>
<include src="footer.html"></include>