4.0.0 • Published 2 years ago

html-sac v4.0.0

Weekly downloads
6
License
CC0-1.0
Repository
github
Last release
2 years ago

html-sac

Html includes that just work today.

Small example

index.html

<html>
<script type="text/html" src="superParagraph.html"></script>
</html>

superParagraph.html

<p class="super">Default Super Paragraph text</p>

Installation

npm i html-sac

Usage

Runtime

Requires a static file server. Include this inside the <head>

<link rel="stylesheet" href="../node_modules/html-sac/source/runTime/inlineHTMLdebugHelper.css">
<script type="module" src="../node_modules/html-sac/source/runTime/inlineHTMLRuntime.js"></script>

Build time

Use build time instead of runtime before going to production. I will include html in files instead of at runtime.

node ./node_modules/html-sac/source/buildTime/inlineHTML.js index.html index-final.html

About

Changelog

Changelog

License

CC0

4.0.0

2 years ago

3.0.0

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago