Skip to content

Instantly share code, notes, and snippets.

@jedahan
Forked from anonymous/yeah.coffee
Created September 14, 2011 18:51
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 jedahan/1217419 to your computer and use it in GitHub Desktop.
Save jedahan/1217419 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