Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed: set .filename option in jade(1) when passing filenames

  • Loading branch information...
commit 4467f1c66a2257b49ae9e7f5e4773ec895ce58e8 1 parent a0370c3
@tj tj authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  bin/jade
View
1  bin/jade
@@ -99,6 +99,7 @@ function renderFile(path) {
if (stat.isFile() && re.test(path)) {
fs.readFile(path, 'utf8', function(err, str){
if (err) throw err;
+ options.filename = path;
var fn = jade.compile(str, options);
path = path.replace(re, '.html');
if (program.out) path = join(program.out, basename(path));
Please sign in to comment.
Something went wrong with that request. Please try again.