function validateForEach( inlineValues, values, array ) {

			if ( "_foreach" in inlineValues ) {

				// test for object syntax `object as key => value`
				var match;

				if ( match = forEachRegex.exec( inlineValues[ "_foreach" ] ) ) {

					var object = {
						keyName: match[ 2 ],
						valueName: match[ 3 ],
						values: values[ match[ 1 ] ]
					};

					return object;
				}

				var set = inlineValues[ "_foreach" ].split( ":" );
				delete inlineValues[ "_foreach" ];

				// as transforms may contain colons, join rest of list to recreate original string
				getArrayValues( set.slice( 1 ).join( ":" ), values ).forEach( function( value ) {
					array.push( value );
				} );

				return set[ 0 ];
			}

			return null;
		}
function validateForEach( inlineValues, values, array ) {

			if ( "_foreach" in inlineValues ) {

				
				var match;

				if ( match = forEachRegex.exec( inlineValues[ "_foreach" ] ) ) {

					var object = {
						keyName: match[ 2 ],
						valueName: match[ 3 ],
						values: values[ match[ 1 ] ]
					};

					return object;
				}

				var set = inlineValues[ "_foreach" ].split( ":" );
				delete inlineValues[ "_foreach" ];

				
				getArrayValues( set.slice( 1 ).join( ":" ), values ).forEach( function( value ) {
					array.push( value );
				} );

				return set[ 0 ];
			}

			return null;
		}
function validateForEach ( inlineValues , values , array ) { if ( "_foreach" in inlineValues ) { // test for object syntax `object as key => value` var match ; if ( match = forEachRegex . exec ( inlineValues [ "_foreach" ] ) ) { var object = { keyName : match [ 2 ] , valueName : match [ 3 ] , values : values [ match [ 1 ] ] } ; return object ; } var set = inlineValues [ "_foreach" ] . split ( ":" ) ; delete inlineValues [ "_foreach" ] ; // as transforms may contain colons, join rest of list to recreate original string getArrayValues ( set . slice ( 1 ) . join ( ":" ) , values ) . forEach ( function ( value ) { array . push ( value ) ; } ) ; return set [ 0 ] ; } return null ; }
Handle _foreach attributes in inline arguments
Handle _foreach attributes in inline arguments