Skip to content

Instantly share code, notes, and snippets.

@thehydroimpulse
Created January 18, 2013 01:13
Show Gist options
  • Select an option

  • Save thehydroimpulse/4561470 to your computer and use it in GitHub Desktop.

Select an option

Save thehydroimpulse/4561470 to your computer and use it in GitHub Desktop.
Package.include('authentication')
Package.require('authentication')
Package.require('controllers', function(config){
// Do something when the package is included.
// The package can export methods, classes, etc...
// and they can be accessed by using "this"
console.log(this.var);
console.log(this.load());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment