Permalink
Browse files

update express3 syntax in readme and example

  • Loading branch information...
1 parent c71bcdc commit 65f1ebfdb82ade4003addbfbb02ad7ec02341514 @gradus committed Aug 21, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 README.md
  2. +1 −2 examples/express/app.coffee
View
@@ -168,8 +168,7 @@ Precompiling to functions:
With [express](http://expressjs.com):
- app.set 'view engine', 'coffee'
- app.register '.coffee', require('coffeecup').adapters.express
+ app.engine 'coffee', require('coffeecup').__express
app.get '/', (req, res) ->
# Will render views/index.coffee:
@@ -2,8 +2,7 @@ app = require('express').createServer()
coffeecup = require '../../src/coffeecup'
-app.set 'view engine', 'coffee'
-app.register '.coffee', coffeecup.adapters.express
+app.engine 'coffee', require('coffeecup').__express
app.get '/', (req, res) ->
res.render 'index'

0 comments on commit 65f1ebf

Please sign in to comment.