code: function(blocks, type) {
  
  		var result = this.asBlocks(blocks),
  			i = 0,
  			count = result.length;
  
  		for (; i < count; i++) {
  
  			if (result[i].type != type) Lava.t("Block type is not permitted in this context. Expected: " + type + ", got: " + result[i].type);
  
  		}
  
  		return result;
  
  	}
docs: Extract blocks/tags from template and assert they all have specific type
  @param {Array} blocks
  @param {string} type
  @returns {Array}