This commit is contained in:
visionmedia
2010-03-16 07:58:06 -07:00
parent 656d7754cd
commit e99c2791bb

View File

@@ -28,6 +28,12 @@
and run:
$ kiwi -v install express
or
Install via git clone:
$ git://github.com/visionmedia/express.git && cd express && git submodule update
## Performance
@@ -40,16 +46,8 @@
Below is a tiny Express application. View the [Wiki](http://wiki.github.com/visionmedia/express/) for detailed information.
var kiwi = require('kiwi'),
express = kiwi.require('express')
configure(function(){
// push "haml" and "sass" to node's load path, so
// that the View engine can require() them
kiwi.seed('haml')
kiwi.seed('sass')
})
require('express')
get('/user', function(){
this.redirect('/user/' + this.currentUser.id)
})