html-after-loader v1.0.7
Helllllo, this package is specifically made for client side you may want to use the
tag in the first lines of the index.html header section
the package allows you to split html files into smaller reusable elements, I am developing the package myself and have recently started to develop it
The package works with a special html tag which is called "loader".
- .html optional
The package doesn't really work yet with the script tags, so you need a special way to add script
- .js optional
if you add the "defer" attribute then the given script tag will run when the website is fully built, otherwise the script will load at the same time as the other elements example:
Warning!!! this package will only run normal script tags in index.html, everywhere else you have to use this, otherwise they will not run
the script will trigger the 'DOMContentLoaded' event after the website is fully loaded
data transfer: use %variablename% in the file to load and use var-variablename="" attribute in the loader tag
example:
index.html: <loader from="hello.html" var-name="Fred"></loader> hello.html: <h1>Hello %name%</h1>