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

		if (Lava.schema.DEBUG && !raw_directive.content) Lava.t("empty attach_directives");

		var blocks = Lava.parsers.Common.asBlocks(raw_directive.content),
			sugar = blocks[0],
			directives = blocks.slice(1),
			i,
			count;

		if (Lava.schema.DEBUG) {
			if (sugar.type != 'tag' || sugar.content || directives.length == 0) Lava.t("Malformed attach_directives");
			for (i = 0, count = directives.length; i < count; i++) {
				if (directives[i].type != 'directive') Lava.t("Malformed attach_directives");
			}
		}

		sugar.content = directives;
		return Lava.parsers.Common.compileAsView([sugar]);

	}
function(raw_directive) {

		if (Lava.schema.DEBUG && !raw_directive.content) Lava.t("empty attach_directives");

		var blocks = Lava.parsers.Common.asBlocks(raw_directive.content),
			sugar = blocks[0],
			directives = blocks.slice(1),
			i,
			count;

		if (Lava.schema.DEBUG) {
			if (sugar.type != 'tag' || sugar.content || directives.length == 0) Lava.t("Malformed attach_directives");
			for (i = 0, count = directives.length; i < count; i++) {
				if (directives[i].type != 'directive') Lava.t("Malformed attach_directives");
			}
		}

		sugar.content = directives;
		return Lava.parsers.Common.compileAsView([sugar]);

	}
function ( raw_directive ) { if ( Lava . schema . DEBUG && ! raw_directive . content ) Lava . t ( "empty attach_directives" ) ; var blocks = Lava . parsers . Common . asBlocks ( raw_directive . content ) , sugar = blocks [ 0 ] , directives = blocks . slice ( 1 ) , i , count ; if ( Lava . schema . DEBUG ) { if ( sugar . type != 'tag' || sugar . content || directives . length == 0 ) Lava . t ( "Malformed attach_directives" ) ; for ( i = 0 , count = directives . length ; i < count ; i ++ ) { if ( directives [ i ] . type != 'directive' ) Lava . t ( "Malformed attach_directives" ) ; } } sugar . content = directives ; return Lava . parsers . Common . compileAsView ( [ sugar ] ) ; }
Wrapper, used to apply directives to a void tag
@param {_cRawDirective} raw_directive
Wrapper used to apply directives to a void tag