public
Created

  • Download Gist
app.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
var app = express()
 
function compile(str, path) {
return stylus(str).set('filename', path).use(nib())
}
 
app.set('views', __dirname + '/views')
app.set('view engine', 'jade')
 
app.use(express.logger('dev'))
app.use(stylus.middleware({
src: __dirname + '/views/css',
dest: __dirname + '/public',
compile: compile,
}))
 
app.use(express.static(__dirname + '/public'))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.