src/mustacheparser.js
function makeAttributes(attrs) {
		let attributes = '{';
		let attr;

		while ((attr = attrRegExp.exec(attrs))) {
			if (attributes !== '{') attributes += ', ';
			attributes += '"' + attr[1].toLowerCase() + '": ' + handleText(attr[2] || attr[3] || '', true).replace(/\s*[,+]\s*$/g, '');
		}
		return attributes + '}';
	}
function makeAttributes(attrs) {
		let attributes = '{';
		let attr;

		while ((attr = attrRegExp.exec(attrs))) {
			if (attributes !== '{') attributes += ', ';
			attributes += '"' + attr[1].toLowerCase() + '": ' + handleText(attr[2] || attr[3] || '', true).replace(/\s*[,+]\s*$/g, '');
		}
		return attributes + '}';
	}
function makeAttributes ( attrs ) { let attributes = '{' ; let attr ; while ( ( attr = attrRegExp . exec ( attrs ) ) ) { if ( attributes !== '{' ) attributes += ', ' ; attributes += '"' + attr [ 1 ] . toLowerCase ( ) + '": ' + handleText ( attr [ 2 ] || attr [ 3 ] || '' , true ) . replace ( / \s*[,+]\s*$ / g , '' ) ; } return attributes + '}' ; }
generate attribute objects for vdom creation
generate attribute objects for vdom creation