Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

cfv1984/html-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML require

A little library to let you require markup, styles and scripts from the browser, with the least possible cognitive load

Usage

Grab dist/html-require.min.js and put it on a page. Once loaded, it will find any nodes with a [data-import] attribute and try to load the markup they represent in the place their 'includer' was.

Building

Clone this, run npm install or yarn, then npm run build or yarn build.

Any help is most appreciated!

About

Require for HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published