src/index.js
function getCompiledContent(file, fragments, tags, replacements, templateFileLog) {
	let content = '';
	let fragmentStep = numberOfTplTagRegExpParts + 1;
	let dirFromPublicPath = getDirFromPublicPath(file);
	let i = 0;
	for (; i < tags.length; ++i) {
		content += fragments[i * fragmentStep];
		content += replaceTplTag(
			dirFromPublicPath,
			tags[i],
			replacements,
			templateFileLog
		);
	}
	content += fragments[i * fragmentStep];
	return content;
}
function getCompiledContent(file, fragments, tags, replacements, templateFileLog) {
	let content = '';
	let fragmentStep = numberOfTplTagRegExpParts + 1;
	let dirFromPublicPath = getDirFromPublicPath(file);
	let i = 0;
	for (; i < tags.length; ++i) {
		content += fragments[i * fragmentStep];
		content += replaceTplTag(
			dirFromPublicPath,
			tags[i],
			replacements,
			templateFileLog
		);
	}
	content += fragments[i * fragmentStep];
	return content;
}
function getCompiledContent ( file , fragments , tags , replacements , templateFileLog ) { let content = '' ; let fragmentStep = numberOfTplTagRegExpParts + 1 ; let dirFromPublicPath = getDirFromPublicPath ( file ) ; let i = 0 ; for ( ; i < tags . length ; ++ i ) { content += fragments [ i * fragmentStep ] ; content += replaceTplTag ( dirFromPublicPath , tags [ i ] , replacements , templateFileLog ) ; } content += fragments [ i * fragmentStep ] ; return content ; }
Get the compiled content of template file.

@param  {Object}   file            The template file.
@param  {string[]} fragments       The content fragments.
@param  {string[]} tags            The template tags in original content.
@param  {Object}   replacements    The replacements.
@param  {Object}   templateFileLog The template file log.

@return {string}                The compiled content.
Get the compiled content of template file .