Lines Matching refs:blocks
326 _proto2.init = function init(ctx, blocks, env) { argument
333 this.blocks = {};
335 lib.keys(blocks).forEach(function (name) {
336 _this4.addBlock(name, blocks[name]);
355 this.blocks[name] = this.blocks[name] || [];
356 this.blocks[name].push(block);
360 if (!this.blocks[name]) {
363 return this.blocks[name][0];
366 var idx = lib.indexOf(this.blocks[name] || [], block);
367 var blk = this.blocks[name][idx + 1];
449 var context = new Context(ctx || {}, this.blocks, this.env);
507 var context = new Context(ctx || {}, this.blocks, this.env);
530 this.blocks = this._getBlocks(props);
535 var blocks = {};
538 blocks[k.slice(2)] = props[k];
541 return blocks;