Skip to content

Instantly share code, notes, and snippets.

@tauren
Created June 17, 2011 23:25
Show Gist options
  • Save tauren/1032582 to your computer and use it in GitHub Desktop.
Save tauren/1032582 to your computer and use it in GitHub Desktop.
# Static site
app.get '/site/*:name', (req,res) ->
console.log 'Getting file ' + req.params.name
res.sendfile __dirname + '/public/' + req.params.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment