In https://github.com/gradus/coffeecup/blob/master/src/compiler.coffee there's an implementation of how to walk the ([ck]offee|tea)[ck]up templates and optimize the function calls into plain HTML. Anything that's static is converted to strings and only the parameters remain, greatly improving the time needed to run the template.
This is useful when you're using client-side re-rendering, like React does.
(Incidentally, it's not a great leap from teacup to generating React.JS code)
In https://github.com/gradus/coffeecup/blob/master/src/compiler.coffee there's an implementation of how to walk the ([ck]offee|tea)[ck]up templates and optimize the function calls into plain HTML. Anything that's static is converted to strings and only the parameters remain, greatly improving the time needed to run the template.
This is useful when you're using client-side re-rendering, like React does.
(Incidentally, it's not a great leap from teacup to generating React.JS code)