html-sac

4.0.0 • Public • Published

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

/html-sac/

    Package Sidebar

    Install

    npm i html-sac

    Weekly Downloads

    7

    Version

    4.0.0

    License

    CC0-1.0

    Unpacked Size

    14.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • grossacasacs