From 463251dfdebcc0b713f0b345d7fbcf771658cf16 Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Fri, 17 Feb 2017 13:15:31 +0100 Subject: [PATCH] Fix use of "promised-handlebars" --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8445f64..1fea25b 100644 --- a/index.js +++ b/index.js @@ -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)