From ed9da43a514719f62c665dab33e0d9aac2085368 Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Wed, 15 Apr 2015 14:25:09 +0100 Subject: [PATCH] Fix an issue with non Windows OS environment where path name where not usable --- lib/compile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compile.js b/lib/compile.js index f8c3775..adfe0be 100644 --- a/lib/compile.js +++ b/lib/compile.js @@ -64,6 +64,7 @@ module.exports = function(file, options, callback) { function getModule(filepath) { var templateName = path.relative(options.base, filepath); + templateName = normalizePath(templateName); if (options.target === 'js') { return compileTemplate(options.objName, options.createObj, templateName, file.contents.toString(), options.quoteChar, options.indentString, options.useStrict, options.htmlmin);