Lines Matching refs:buf

112     this.buf = [];  property
113 if (this.pp) this.buf.push("var pug_indent = [];");
124 this.buf[y] = '';
130 var js = this.buf.join('\n');
187 if (this.lastBufferedIdx == this.buf.length && this.bufferedConcatenationCount < 100) {
194 …this.buf[this.lastBufferedIdx - 1] = 'pug_html = pug_html + ' + this.bufferStartChar + this.lastBu…
197 this.buf.push('pug_html = pug_html + "' + str + '";');
201 this.lastBufferedIdx = this.buf.length;
216 if (this.lastBufferedIdx == this.buf.length && this.bufferedConcatenationCount < 100) {
221 …this.buf[this.lastBufferedIdx - 1] = 'pug_html = pug_html + (' + this.bufferStartChar + this.lastB…
224 this.buf.push('pug_html = pug_html + (' + src + ');');
228 this.lastBufferedIdx = this.buf.length;
246 this.buf.push('pug_html = pug_html + pug_indent.join("");');
274 this.buf.push(js + ';');
324 this.buf.push('switch (' + node.expr + '){');
326 this.buf.push('}');
338 this.buf.push('default:');
340 this.buf.push('case ' + node.expr + ':');
344 this.buf.push(' break;');
397 if (this.pp) this.buf.push("pug_indent.push('" + Array(this.indents + 1).join(this.pp) + "');");
398 this.buf.push('block && block();');
399 if (this.pp) this.buf.push("pug_indent.pop();");
443 if (pp) this.buf.push("pug_indent.push('" + Array(this.indents + 1).join(pp) + "');")
446 this.buf.push(name + '.call({');
449 this.buf.push('block: function(){');
460 this.buf.push('},');
462 this.buf.push('}');
472 … this.buf.push('attributes: ' + this.runtime('merge') + '([' + attrsBlocks.join(',') + '])');
474 this.buf.push('attributes: ' + attrsBlocks[0]);
478 this.buf.push('attributes: ' + val);
482 this.buf.push('}, ' + args + ');');
484 this.buf.push('});');
488 this.buf.push(name + '(' + args + ');');
490 if (pp) this.buf.push("pug_indent.pop();")
492 var mixin_start = this.buf.length;
500 this.buf.push(name + ' = pug_interp = function(' + args.join(',') + '){');
501 … this.buf.push('var block = (this && this.block), attributes = (this && this.attributes) || {};');
503 this.buf.push('var ' + rest + ' = [];');
504 …this.buf.push('for (pug_interp = ' + args.length + '; pug_interp < arguments.length; pug_interp++)…
505 this.buf.push(' ' + rest + '.push(arguments[pug_interp]);');
506 this.buf.push('}');
511 this.buf.push('};');
512 var mixin_end = this.buf.length;
673 this.buf.push(code.val);
678 if (!code.buffer) this.buf.push('{');
680 if (!code.buffer) this.buf.push('}');
693 this.buf.push('if (' + test + ') {');
695 this.buf.push('}')
698 this.buf.push('else')
701 this.buf.push('else {');
703 this.buf.push('}');
717 this.buf.push('while (' + test + ') {');
719 this.buf.push('}');
733 this.buf.push(''
740 this.buf.push(' if ($$obj.length) {');
743 this.buf.push(''
749 this.buf.push(' }');
752 this.buf.push(' } else {');
754 this.buf.push(' }');
757 this.buf.push(''
766 this.buf.push(' }');
768 this.buf.push(' if ($$l === 0) {');
770 this.buf.push(' }');
772 this.buf.push(' }\n}).call(this);\n');