lib/parsers/html-to-template.js
function rawContent(tagName, string, templ, innerTemplate) {
	var index = string.indexOf('</' + tagName + '>'),
		raw;
	if (index === -1)
		throw new Error(tagName + ' tag badly closed.');
	if (index) { // more than 0
		raw = string.substring(0, index);
		if (tagName === 'templ') // produce local api-like handler
		{
			innerTemplate.templFunc = new Function(raw);
		} else
			innerTemplate.raw(raw);
	}
	return string.substring(index + tagName.length + 3);
}
function rawContent(tagName, string, templ, innerTemplate) {
	var index = string.indexOf('</' + tagName + '>'),
		raw;
	if (index === -1)
		throw new Error(tagName + ' tag badly closed.');
	if (index) { // more than 0
		raw = string.substring(0, index);
		if (tagName === 'templ') // produce local api-like handler
		{
			innerTemplate.templFunc = new Function(raw);
		} else
			innerTemplate.raw(raw);
	}
	return string.substring(index + tagName.length + 3);
}
function rawContent ( tagName , string , templ , innerTemplate ) { var index = string . indexOf ( '</' + tagName + '>' ) , raw ; if ( index === - 1 ) throw new Error ( tagName + ' tag badly closed.' ) ; if ( index ) { // more than 0 raw = string . substring ( 0 , index ) ; if ( tagName === 'templ' ) // produce local api-like handler { innerTemplate . templFunc = new Function ( raw ) ; } else innerTemplate . raw ( raw ) ; } return string . substring ( index + tagName . length + 3 ) ; }
raw inner content of tag
raw inner content of tag