Skip to content

Instantly share code, notes, and snippets.

@shawjia
Created December 16, 2012 07:41
Show Gist options
  • Save shawjia/4304077 to your computer and use it in GitHub Desktop.
Save shawjia/4304077 to your computer and use it in GitHub Desktop.
load module written in CoffeeScript
###
load from CoffeeScript
just load, nothing else
###
{hello} = require './test'
hello()
require('coffee-script');
hello = require('./test').hello;
hello();
console.log 'load test.coffee'
exports.hello = ->
console.log 'hello from test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment