Re:Pithy.js - An internal DSL for generating HTML in JavaScript
by pettazz on Wednesday April 03, 2013 @11:05AM
(#5486482)
I suppose it's probably just a matter of trying to keep things as simple as possible. You're already specifying all the attributes of the nodes you're creating, so you can just as easily then bind them yourself. UNIX philosophy and all that.
[ Parent
| on HN ]
Re:Pithy.js - An internal DSL for generating HTML in JavaScript
by grimtrigger on Wednesday April 03, 2013 @12:35PM
(#5487111)
Just an argument for why I think its pretty important (maybe your use case is different so this doesn't apply).
With every HTML injection, I'd have to cycle through all relavant nodes, sorting out the ones that have already been binded, and then apply the relevant bindings. With a dynamic app that injects a lot of small HTML parts, this could be quite painful.