Re:CoffeeScript -- You Are Totally Gonna Hate It
by aaronblohowiak on Monday July 19, 2010 @01:23AM
(#1527708)
EJSRB is a full javascript context, and javascript is a language you probably already know. While our views are separate from controllers and models, they often need more advanced string manipulation than liquid or mustache give you. The fact that it is a full javascript context means you can define your own helpers, and have them still work on the client side. For instance, say you want to generate element ids from the json data. This belongs in a function that is accessible to your view layer, but you shouldn't have to program this twice (once for server, once for client.) AFAIK, there isn't a great way to accomplish this code sharing yet.
[ Parent
| on HN ]
There are no comments on this comment yet.