lib/packages/parsers.js
function(raw_blocks) {

		var result = this.asBlocks(this.compileTemplate(raw_blocks));
		if (result.length != 1) Lava.t("Expected: exactly one view, got either several or none.");
		if (result[0].type != 'view' && result[0].type != 'widget') Lava.t("Expected: view, got: " + result[0].type);
		return result[0];

	}
function(raw_blocks) {

		var result = this.asBlocks(this.compileTemplate(raw_blocks));
		if (result.length != 1) Lava.t("Expected: exactly one view, got either several or none.");
		if (result[0].type != 'view' && result[0].type != 'widget') Lava.t("Expected: view, got: " + result[0].type);
		return result[0];

	}
function ( raw_blocks ) { var result = this . asBlocks ( this . compileTemplate ( raw_blocks ) ) ; if ( result . length != 1 ) Lava . t ( "Expected: exactly one view, got either several or none." ) ; if ( result [ 0 ] . type != 'view' && result [ 0 ] . type != 'widget' ) Lava . t ( "Expected: view, got: " + result [ 0 ] . type ) ; return result [ 0 ] ; }
Compile template as usual and assert that it contains single view inside. Return that view

@param {_tRawTemplate} raw_blocks
@returns {_cView}
Compile template as usual and assert that it contains single view inside . Return that view