Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lassejlv/includerjs
A tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.
https://github.com/lassejlv/includerjs
html javascript javascript-library
Last synced: about 2 months ago
JSON representation
A tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.
- Host: GitHub
- URL: https://github.com/lassejlv/includerjs
- Owner: lassejlv
- Created: 2022-10-14T16:56:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T06:23:12.000Z (8 months ago)
- Last Synced: 2024-11-07T15:59:21.387Z (2 months ago)
- Topics: html, javascript, javascript-library
- Language: TypeScript
- Homepage:
- Size: 391 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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:
1. Load the Includer.js library in the document.
```html
```
2. Add the component to the page and specify the path to the external HTML files.
```html
```
```html
```
# Preview:
![Image](https://i0.wp.com/www.cssscript.com/wp-content/uploads/2022/10/include-html-file.webp?fit=746%2C568&ssl=1)