title: Example of using Coffeescript classes and RequireJS (or Curljs or similar) for client side browser library
body: <p>We want to develop a browser (client side only) library using Coffeescript, and in particular, we tend to use the "class" capability of Coffeescript quite a bit, in addition to pure functions. The library will be relatively large, so we want to start out using a well defined module pattern, but not to the point where we want a single coffee file for every coffeescript "class". We don't want to compile the coffee files on the fly, but rather as a specific build step, and would prefer to not have to concat all the outputted JS into one file. As a final requirement, we will be using something like Jasmine for testing.</p>
  
  <p>Does anyone know of a good example library developed in this way, using Coffeescript with something such as RequireJS, CurlJS, Browserify etc? I have looked on Github, and there are some examples, but I couldn't see anything specific to my needs.</p>
  
  <p>I tried <a href="http://github.com/serpentem/coffee-toaster" rel="nofollow noreferrer">Coffee-Toaster</a> , as it seemed to hold some promise in making it simple to define dependencies etc, but it failed to deal with Windows paths (the old \ vs /), so gave up on that, mainly because it seemed to be a bit on the "light" side - something like RequireJS would seem to have a much better community support behind it.</p>
  
  <p>Thanks for any help you can provide. I am really looking for working source code examples if possible.</p>