Skip to content

Commit

Permalink
Merge pull request sintaxi#460 from georgzoeller/patch-1
Browse files Browse the repository at this point in the history
Updated express invocation documentation in README
  • Loading branch information
kennethormandy committed Sep 9, 2015
2 parents 8328749 + 7c92aca commit 1a38dfa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1a38dfa

Please sign in to comment.