Skip to content

Instantly share code, notes, and snippets.

@Scriptor
Created March 19, 2010 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Scriptor/337849 to your computer and use it in GitHub Desktop.
Save Scriptor/337849 to your computer and use it in GitHub Desktop.
get 'greet/:name', (request) ->
"Hello " + request.params['name']
becomes
routes = {
'greet/:name': function(request){
return "Hello " + request.params['name'];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment