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) {