ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.32k stars 382 forks source link

Promisified `renderView` method #185

Open rowanmanning opened 8 years ago

rowanmanning commented 8 years ago

Hey, I'm using renderView and was confused that it doesn't return a promise like the render method. Is there any reason for this?

Also would you be interested in a PR which promisifies renderView? I'm happy to take a look, and it could be done in a backwards-compatible way – if the callback isn't passed in then return a promise.