Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coffee support #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Coffee support #15

wants to merge 1 commit into from

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