Build HTML with JSON

What does it solve?

If you've tried to create a node with multiple child nodes that all have event listeners etc, you probably know that it's a hassle to keep track of all the variables, events and all that.

Scaffold solves this by providing you with methods to create an object containing all nodes, child nodes and event listeners.

Doesn't this exist already?

Well, kinda. This is what libraries like React and Angular solves, but if you already have a project you're working on, in order to justify implementing a library of that scale, you might have to build your project from scratch.

Scaffold is tiny. It's built to solve building HTML in JavaScript and that's it.

So this only works with hardcoded JavaScript objects?

Nope. Create a JSON object and you're good to go. The only thing you wont be able to make with JSON objects is event listeners.

The code

Copy the whole source from Scriptly or visit us on Github.