Sage/streamlinejs — pull request #101 by aseemk (2012-05-29 12:43:18+00:00)
Title: Add support for Cakefiles!

*[Repeat of #99 to be based off of dvlp rather than master.]*

Discussion thread:

http://groups.google.com/group/streamlinejs/browse_thread/thread/71cabdbc8962b030/afcc631faf404b97

In order to not have to manually reimplement much or all of Cake, this pull request achieves Streamlining via the in-file require('streamline/module') directive.

This commit just recognizes Cakefiles as CoffeeScript so that the generated tmp file is outputted with a .coffee extension, which makes things work.

There might be other ways of supporting Streamline in Cakefiles, in particular to avoid the in-file directive, but I'm not sure any are feasible. Still thinking though.