Re:T.js - A tiny templating framework in ~400 bytes
by jedschmidt on Monday August 13, 2012 @08:09PM
(#4378791)
[ Parent
| on HN ]
Re:T.js - A tiny templating framework in ~400 bytes
by jasonmoo on Monday August 13, 2012 @08:13PM
(#4378803)
Oh I like this. I was messing with a similar tactic appending a textNode to an HTML element but this is much more elegant.
Re:T.js - A tiny templating framework in ~400 bytes
by jedschmidt on Monday August 13, 2012 @08:25PM
(#4378827)
The text node approach is cross-browser, whereas I don't think this works on oldIE.