Skip to content

Commit

Permalink
Fix use of "promised-handlebars"
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Feb 17, 2017
1 parent b27edfa commit 463251d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ module.exports = {
debug('Data after preprocessing:', data)
// We use the `promised-handlebars` module to
// support helpers returning promises
var hbs = promisedHandlebars(Handlebars)
var hbs = promisedHandlebars(Handlebars, {
Promise: Q.Promise
})

var partials = _.mapValues(contents(config.partials), config.partialWrapper)
hbs.registerPartial(partials)
Expand Down

0 comments on commit 463251d

Please sign in to comment.