Coffee support #15

wants to merge 1 commit into


None yet

1 participant

bragi commented Nov 4, 2010

Hi Tim,

As promised a patch bringing coffee script support for spark. There are two parts:

When coffee-script is required it patches 'require' to look for .coffee files as well. When no coffee-script is available we ignore it silently.

Second part is trivial: when coffee-script is available check if {app,server}.coffee is available in addition to it's .js counterpart and require it via node built-in (and extended by coffee-script) mechanism.

BTW: standardizing on a single entry point (either one is good, app.{js,coffee} is my preferred one) may be a good idea.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment