From a0c348681b0d7febf36a0842cdddaf3a9fe91806 Mon Sep 17 00:00:00 2001 From: magicdawn Date: Wed, 10 Jun 2015 09:11:56 +0100 Subject: [PATCH] update README --- readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 7f64e1d..66cfaad 100644 --- a/readme.md +++ b/readme.md @@ -22,11 +22,12 @@ 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)? @@ -34,7 +35,7 @@ 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