0.0.12 • Published 4 years ago

html2js-compiler v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

html2js-compiler

Library for generating native DOM creation functions from HTML code. In other words, converting this:

<div class="main-topic"><span>content</span></div>

to this:

let el_0, el_0_attr, el_1, el_2;
el_0 = document.createElement("div");
el_0_attr = document.createAttribute("class");
el_0_attr.value = "main-topic";
el_0.setAttributeNode(el_0_attr);
    el_1 = document.createElement("span");
    el_0.appendChild(el_1);
        el_2 = document.createTextNode("content");
        el_1.appendChild(el_2);
0.0.12

4 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago