Permalink
Browse files

Updated express invokation

Express 4 removes app.configure
  • Loading branch information...
1 parent 7f51d4e commit 7c92aca714b2ad85ff031e35478291439a3e2adf @georgzoeller georgzoeller committed Jun 23, 2015
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.md
View
@@ -116,13 +116,25 @@ harp.compile(projectPath [,outputPath] [, callback])
var express = require("express");
var harp = require("harp");
var app = express();
+```
-app.configure(function(){
+```js
+// Express 3
+app.configure(function(){
app.use(express.static(__dirname + "/public"));
app.use(harp.mount(__dirname + "/public"));
});
```
+```js
+// Express 4
+
+app.use(express.static(__dirname + "/public"));
+app.use(harp.mount(__dirname + "/public"));
+
+```
+
+
## License
Copyright © 2012–2014 [Chloi Inc](http://chloi.io). All rights reserved.

0 comments on commit 7c92aca

Please sign in to comment.