hilt

Simple Javascript library to create HTML structures without using preprocessors. React support included!

Usage no npm install needed!

<script type="module">
  import hilt from 'https://cdn.skypack.dev/hilt';
</script>

README

hilt Build Status

Simple Javascript library to create HTML structures without using preprocessors. React support included!

["div", {id: "main"}, ["span", "Hello World"]]

generates

<div id="main"><span>Hello World</span></div>

Usage

let link = ["a", {id: "link", href: "https://github.com/atomicptr"}, "Profile"]

containerElement.appendChild(Hilt.compileDocument(link)) // <a id="link" href="https://github.com/atomicptr">Profile</a>

License

MIT