Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created March 8, 2010 05:24
Show Gist options
  • Select an option

  • Save tim-smart/324898 to your computer and use it in GitHub Desktop.

Select an option

Save tim-smart/324898 to your computer and use it in GitHub Desktop.
var CoffeeScript = require('coffeescipt-compiler');
require.registerExtension('.coffee', function(async, source, asyncCallback) {
if (true === async)
asyncCallback(CoffeeScript.compile(source));
else
return CoffeeScript.compile(source);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment