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