From f67811a48e8b32f96c3852d000c72e71ae8d4ed9 Mon Sep 17 00:00:00 2001 From: Shannon Oram Date: Tue, 20 Jan 2015 11:44:20 +1100 Subject: [PATCH] bug fix: partials do not render on windows 7. Fix detailed here: https://github.com/laktek/punch/issues/102 --- lib/template_handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/template_handler.js b/lib/template_handler.js index 493a911..0fd5c6c 100644 --- a/lib/template_handler.js +++ b/lib/template_handler.js @@ -19,7 +19,7 @@ module.exports = { return false; } - var path_portions = template_path.split(Path.sep || "/"); + var path_portions = template_path.split("/"); if(_.any(path_portions, function(portion){ return portion[0] === "."; })){ return false; } @@ -232,7 +232,7 @@ module.exports = { }; var directories_to_look = []; - _.each(basePath.split(Path.sep || "/"), function(current_dir_entry){ + _.each(basePath.split("/"), function(current_dir_entry){ var previous_dir_entry; if(directories_to_look.length) {