Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
magicdawn committed Jun 10, 2015
1 parent 30ce98e commit a0c3486
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ app.engine('jade',function(view,locals){
return function(done){
jade.renderFile(view,locals,done);
};
})
});
```

app.engine('ext',engine);
engine should be a thunk or a Promise;
engine should return a thunk or a Promise
so use `Promise.promisify` with bluebird is also supported.

## Why
why not [koa-views](https://github.com/queckezz/koa-views)?

koa-views -> [co-views](https://github.com/tj/co-views) -> [co-render](https://github.com/tj/co-render)
-> [consolidate.js](https://github.com/tj/consolidate.js)

And only engine supported in consolidate.js supported in koa-views;
Any engine not supported in consolidate need to PR to consolidate.I hate centerlized.

## License
MIT http://magicdawn.mit-license.org

0 comments on commit a0c3486

Please sign in to comment.