Navigation Menu

Skip to content

Commit

Permalink
pass right file to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
eldargab committed Jan 9, 2013
1 parent feaa1af commit 60045fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.js
Expand Up @@ -468,7 +468,7 @@ Parser.prototype = {
var str = fs.readFileSync(path, 'utf8');
var ext = extname(path).slice(1);
var filter = filters[ext];
if (filter) str = filter(str, {filename: this.filename}).replace(/\\n/g, '\n');
if (filter) str = filter(str, {filename: path}).replace(/\\n/g, '\n');
return new nodes.Literal(str);
}

Expand Down

0 comments on commit 60045fc

Please sign in to comment.