0.0.12 • Published 6 years ago

html2js-compiler v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago