mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
10
node_modules/jade/lib/compiler.js
generated
vendored
10
node_modules/jade/lib/compiler.js
generated
vendored
@@ -195,11 +195,11 @@ Compiler.prototype = {
|
||||
var debug = this.debug;
|
||||
|
||||
if (debug) {
|
||||
this.buf.push('jade_debug.unshift({ lineno: ' + node.line
|
||||
+ ', filename: ' + (node.filename
|
||||
this.buf.push('jade_debug.unshift(new jade.DebugItem( ' + node.line
|
||||
+ ', ' + (node.filename
|
||||
? utils.stringify(node.filename)
|
||||
: 'jade_debug[0].filename')
|
||||
+ ' });');
|
||||
+ ' ));');
|
||||
}
|
||||
|
||||
// Massive hack to fix our context
|
||||
@@ -404,7 +404,9 @@ Compiler.prototype = {
|
||||
if (args.length && /^\.\.\./.test(args[args.length - 1].trim())) {
|
||||
rest = args.pop().trim().replace(/^\.\.\./, '');
|
||||
}
|
||||
this.buf.push(name + ' = function(' + args.join(',') + '){');
|
||||
// we need use jade_interp here for v8: https://code.google.com/p/v8/issues/detail?id=4165
|
||||
// once fixed, use this: this.buf.push(name + ' = function(' + args.join(',') + '){');
|
||||
this.buf.push(name + ' = jade_interp = function(' + args.join(',') + '){');
|
||||
this.buf.push('var block = (this && this.block), attributes = (this && this.attributes) || {};');
|
||||
if (rest) {
|
||||
this.buf.push('var ' + rest + ' = [];');
|
||||
|
||||
Reference in New Issue
Block a user