From 74528a002e97a969cd00f5eb3f3b8c0adaabba27 Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Sun, 11 Jun 2017 22:15:59 +0200 Subject: [PATCH] Doc-Typo, re-add missing require on Handlebars for docEngine --- lib/doc-engine.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/doc-engine.js b/lib/doc-engine.js index 570c74f..c92b2ff 100644 --- a/lib/doc-engine.js +++ b/lib/doc-engine.js @@ -1,4 +1,5 @@ const {files} = require('customize/helpers-io') +const Handlebars = require('handlebars') /** * This customize-engine takes the same configuration schema as @@ -30,7 +31,7 @@ module.exports = { preprocessConfig (config) { return { partials: files(config.partials), - partialWrapper: config.partialWrapper && [ config.partialWrapper.toString() ], + partialWrapper: config.partialWrapper && [config.partialWrapper.toString()], helpers: config.helpers && [onlyIfString(config.helpers)], templates: files(config.templates), data: config.data, @@ -48,7 +49,7 @@ module.exports = { /** * Returns a string if the parameter is a string * and null, if it is anything else - * @param {strnig|function} stringOrFunction the input parameter + * @param {string|function} stringOrFunction the input parameter * @return {string|null} a string or null */ function onlyIfString (stringOrFunction) {