Skip to content

Instantly share code, notes, and snippets.

@slaskis
Created December 11, 2011 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaskis/1461303 to your computer and use it in GitHub Desktop.
Save slaskis/1461303 to your computer and use it in GitHub Desktop.
diff --git a/lib/parser.js b/lib/parser.js
index ca6fe8d..9673efe 100644
--- a/lib/parser.js
+++ b/lib/parser.js
@@ -387,7 +387,7 @@ Parser.prototype = {
if (!this.filename)
throw new Error('the "filename" option is required to extend templates');
- var path = name = this.expect('extends').val.trim()
+ var path = this.expect('extends').val.trim()
, dir = dirname(this.filename);
var path = join(dir, path + '.jade')
@@ -445,7 +445,7 @@ Parser.prototype = {
, basename = path.basename
, join = path.join;
- var path = name = this.expect('include').val.trim()
+ var path = this.expect('include').val.trim()
, dir = dirname(this.filename);
if (!this.filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment