Skip to content

A tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.

Notifications You must be signed in to change notification settings

lassejlv/includerjs

Repository files navigation

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:

  1. Load the Includer.js library in the document.
<script src="https://unpkg.com/includerjs@2.0.1/dist/index.js"></script>
  1. 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>

Preview:

Image

About

A tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.

Topics

Resources

Stars

Watchers

Forks