Skip to content

Instantly share code, notes, and snippets.

Created September 13, 2011 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/1214058 to your computer and use it in GitHub Desktop.
Save anonymous/1214058 to your computer and use it in GitHub Desktop.
config = JSON.parse require('fs').readFileSync './config.json', 'utf8'
zappa 80, {config}, ->
@config = config
get '/': ->
render 'index'
zappa 33, {config}, ->
helper fakeData: ->
include 'faker.coffee'
get '/': ->
fakeData()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment