Skip to content

Conversation

@bragi
Copy link

@bragi 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant