There is no case
statement in CoffeeScript. You want a switch
- the case
keyword is the equivalent of JavaScript when
, and, like many dropped JavaScript keywords, are reserved in CoffeeScript. Also, I'm not 100% positive and I don't have the Haml-Coffee test right now, but I think you need to indent the switch body.
Chuck source share