Skip to content

Instantly share code, notes, and snippets.

@technoweenie
Created January 31, 2010 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technoweenie/808401ee91d56c139993 to your computer and use it in GitHub Desktop.
Save technoweenie/808401ee91d56c139993 to your computer and use it in GitHub Desktop.
( fab )
( '/foobar' )
// INSERT APP HERE
( "/track", ...)
( "/location", ...)
()
( fab )
app = fab('/hello', 'hello')
app = WheresWaldo.mount('/waldo', app)
app(fab)
WheresWaldo.mount = function(prefix, app) {
return app
(prefix)
('/track', ...)
("/location", ...)
();
}
( fab )
('/hello', 'hello')
.mount('/waldo', WheresWaldo.mount)
( fab )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment