Re:T.js - A tiny templating framework in ~400 bytes
by obituary_latte on Monday August 13, 2012 @11:19PM
(#4379222)
I had to zoom in like 3 times on my phone to vote this up. I know it may be bad form and all to comment on such, but guhdamn if as newb this doesn't wrinkle my britches.
Re:T.js - A tiny templating framework in ~400 bytes
by thezilch on Tuesday August 14, 2012 @12:35AM
(#4379423)
Couldn't update my original post, but I was in a rush earlier and couldn't make the proper complete-parity examples: http://news.ycombinator.com/item?id=4379417
Notably, the examples found at https://gist.github.com/964762#file_test.js has the closest parity.
Edit: On second thought, I think the previous gist can reach parity with just a helper function for iterating and escaping: