I can appreciate that this scratches your itch but the premise isn't really that unique - I've been using daffl/dform for instance when I want to generate forms from json.<p>My problem with things like this is I don't see the benefit of the abstraction.<p>admittedly
Objectified.render({ tagName:"p", attributes:{ innerHTML:"some nice text" } });<p>is slightly less verbose than
var p = document.createElement("p");
p.appendChild(document.createTextNode("some nice text"));<p>But both would probably become unwieldy and difficult to manage if you were building a complex document. One benefit to me of having templates which look like actual html is that they make it easier to reason about what the actual document is going to look like. The purely json or "replace tags with significant whitespace" seems to add syntactic sugar without obvious benefit.<p>Although, again admittedly, if you're more comfortable with those then for you, it's a benefit having everything look the same.