Skip to content

A JS Library to enable local HTML includes to allow for component driven HTML components.

Notifications You must be signed in to change notification settings

JuriKiin/local-includes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

local-includes

A JS Library to enable local HTML includes to allow for component driven HTML components.

This library also supports nested includes, as well as CSS and JS interactions with local includes.

Demo

Demo site can be found here: https://jurikiin.com/local-includes/

Integration

  1. Include the following script at the end of the body in your top level HTML file.
<script type="text/javascript" src="https://jurikiin.com/local-includes/local-includes.js"></script>
  1. Define your local included snippet. (ex. components/example.html)
<div>
    <p>This is a locally included snippet!</p>
</div>
  1. Declare a local include with the local path to the html file.
<body>
  <ks-include path='components/example.html'></ks-include>
</body>
  1. That's it!

Support this Library

Support this project with a ⭐

"Buy Me A Coffee"

About

A JS Library to enable local HTML includes to allow for component driven HTML components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published