Skip to content

Instantly share code, notes, and snippets.

@cuipengfei
Created December 14, 2013 10:04
Show Gist options
  • Save cuipengfei/7957490 to your computer and use it in GitHub Desktop.
Save cuipengfei/7957490 to your computer and use it in GitHub Desktop.
express work jade
var express = require('express')
var app = express()
app.set('view engine', 'jade')
app.set('views', process.argv[3])
app.get('/home', function (req, res) {
res.render('index', {date: new Date().toDateString()})
})
app.listen(process.argv[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment