News for hackers. Stuff that matters.
Re:A proper JavaScript templating engine with a sane syntax by ricardobeat on Wednesday July 17, 2013 @02:30PM (#6059324)
What makes it different from EJS?
Re:A proper JavaScript templating engine with a sane syntax by benbeltran on Wednesday July 17, 2013 @03:47PM (#6059827)
We based it on EJS because we had a lot of views with EJS. But we needed a lot of performance (Our goal was to be faster than the underscore templating language). We also needed debuggability. So, it's built in a way that works very well with all the tools we use. Finally, the feature we benefit from the most is broken printable blocks. It's very easy to capture the output from a function in a block, and just move it around as we please. It makes wrapping helpers a hell of a lot easier.