0.2.1 • Published 7 years ago
hilt v0.2.1
hilt
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