This is a repository to build HTML based in json struct
The json payload is as follow:
{
"tag": "div",
"attributes": {
"id": "some-id",
"class": "some-class"
},
"children": [
//...components or "some-text-or-html"
],
}
If the component tag is self closing, content and children will be ignored;
var someJson = {};
JSON2HTML.build(someJson);
var someHtml = '<div></div>';
JSON2HTML.unbuild(someHtml);
You can check the example in docs folder.
Yes, please! Everybody is welcome.