Skip to content

Instantly share code, notes, and snippets.

@jasonmorganson
Created September 24, 2011 15:56
Show Gist options
  • Save jasonmorganson/1239478 to your computer and use it in GitHub Desktop.
Save jasonmorganson/1239478 to your computer and use it in GitHub Desktop.
Serve CoffeeScript, Jade, Stylus with Zappa.js and connect-assets.
zappa = require 'zappa'
zappa ->
@configure =>
@set 'view engine': 'jade'
@use require('connect-assets')()
@use 'bodyParser', 'methodOverride', 'static'
@configure
development: ->
@use errorHandler: { dumpExceptions: on, showStack: on }
production: ->
@use 'errorHandler', 'staticCache'
### Routes ###
@get '/': ->
@render 'index'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment