News for hackers. Stuff that matters.
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.
Re:T.js - A tiny templating framework in ~400 bytes by jsharpe on Tuesday August 14, 2012 @12:27AM (#4379409)
I just tried this and it doesn't seem to escape " to ".