Friday, October 15, 2010

Using Backbone.js in CoffeeScript

If you don't know about CoffeeScript yet, you need to check it out. Now. -- I love it. It feels as fun and clean as writing in Ruby, only it compiles to JavaScript. That's what you would call "all good." If you were one to use such expressions.

Here's some coffee I created so I could use Backbone classes as native CoffeeScript classes:

1 comment:

  1. Thanks for the shim! As of this commit, you should no longer need to do any special setup to use Backbone with CoffeeScript classes:

    http://github.com/documentcloud/backbone/commit/1d57168c8f436f1f9b20a5fa7f13495610931b22

    Cheers,
    Jeremy

    ReplyDelete