From 0452707028356cd8ebd8f55a0e8f54bec8d5f583 Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 3 Mar 2016 17:12:33 -0500 Subject: [PATCH 1/2] This module doesnt work on Windows ("\" character) Paths in windows are resolved with the "\" character between directories, so because you are evaluating raw output from the `resolve` function this means it gets interpreted as an escape character. The simplest solution is to replace "\" with "/" because windows allows both as directory separators. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3907b55..272d4e4 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,7 @@ module.exports = function(content) { // Resolve attributes source = attributesContext.resolveAttributes(source); - callback(null, 'var Handlebars = require(\'' + require.resolve('handlebars/runtime') + '\');\n' + + callback(null, 'var Handlebars = require(\'' + require.resolve('handlebars/runtime').replace(/\\/g, '/') + '\');\n' + 'module.exports = (Handlebars[\'default\'] || Handlebars).template(' + source + ');'); }; From 8cd1d54bbb63cc6eb2b3ed5b18916136d985324e Mon Sep 17 00:00:00 2001 From: emaphp Date: Thu, 3 Mar 2016 19:46:30 -0300 Subject: [PATCH 2/2] adding collaborators --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index da35631..38892da 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,9 @@ }, { "name": "Patrick Browne (ptbrowne)" + }, + { + "name": "Ivan (Ivanca)" } ], "repository": {