Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Merge pull request #57 from imbcmdth/13009453af32a27d51d5dd22f3640661…
Browse files Browse the repository at this point in the history
…48241f6b

Small fix in index.js to support Windows paths
  • Loading branch information
paularmstrong committed Feb 18, 2012
2 parents 0e6704b + 1300945 commit 81fb7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ exports.compileFile = function (filepath) {
}

get = function () {
var file = ((/^\//).test(filepath)) ? filepath : _config.root + '/' + filepath,
var file = ((/^\//).test(filepath) || (/^.:/).test(filepath)) ? filepath : _config.root + '/' + filepath,
data = fs.readFileSync(file, config.encoding);
tpl = getTemplate(data, { filename: filepath });
};
Expand Down

0 comments on commit 81fb7b3

Please sign in to comment.