Created
September 24, 2011 15:56
-
-
Save jasonmorganson/1239478 to your computer and use it in GitHub Desktop.
Serve CoffeeScript, Jade, Stylus with Zappa.js and connect-assets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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