Permalink
Browse files

s/_/__/

  • Loading branch information...
1 parent fd0e2a2 commit 3ad6e6a61d18b3f8179fb26f08faec6a0765eb57 @tj tj committed Nov 23, 2010
Showing with 6 additions and 6 deletions.
  1. +1 −1 lib/compiler.js
  2. +5 −5 lib/jade.js
View
@@ -68,7 +68,7 @@ Compiler.prototype = {
line: function(node){
if (node.instrumentLineNumber === false) return;
- this.buf.push('_.lineno = ' + node.line + ';');
+ this.buf.push('__.lineno = ' + node.line + ';');
},
/**
View
@@ -215,12 +215,12 @@ exports.compile = function(str, options){
// Reduce closure madness by injecting some locals
var fn = [
- 'var _ = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
+ 'var __ = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
rethrow.toString(),
'try {',
parse(String(str), options || {}),
'} catch (err) {',
- ' rethrow(err, _.input, _.filename, _.lineno);',
+ ' rethrow(err, __.input, __.filename, __.lineno);',
'}'
].join('\n');
@@ -270,11 +270,11 @@ exports.render = function(str, options){
// Render the template
try {
var locals = options.locals || {}
- , _ = { lineno: 1 };
- locals._ = _;
+ , meta = { lineno: 1 };
+ locals.__ = meta;
return fn.call(options.scope, locals);
} catch (err) {
- rethrow(err, str, filename, _.lineno);
+ rethrow(err, str, filename, meta.lineno);
}
};

0 comments on commit 3ad6e6a

Please sign in to comment.