src/index.js
function compileTemplate(file, replacements, templateFileLog) {
	file = File.find(path.resolve(file));
	let content = file.read();
	let tags = content.match(new RegExp(tplTagRegExpStr, 'g'));
	if (tags && tags.length) {
		content = getCompiledContent(
			file,
			content.split(new RegExp(tplTagRegExpStr)),
			tags,
			replacements,
			templateFileLog
		);
		file.write(content);
	}
}
function compileTemplate(file, replacements, templateFileLog) {
	file = File.find(path.resolve(file));
	let content = file.read();
	let tags = content.match(new RegExp(tplTagRegExpStr, 'g'));
	if (tags && tags.length) {
		content = getCompiledContent(
			file,
			content.split(new RegExp(tplTagRegExpStr)),
			tags,
			replacements,
			templateFileLog
		);
		file.write(content);
	}
}
function compileTemplate ( file , replacements , templateFileLog ) { file = File . find ( path . resolve ( file ) ) ; let content = file . read ( ) ; let tags = content . match ( new RegExp ( tplTagRegExpStr , 'g' ) ) ; if ( tags && tags . length ) { content = getCompiledContent ( file , content . split ( new RegExp ( tplTagRegExpStr ) ) , tags , replacements , templateFileLog ) ; file . write ( content ) ; } }
Compile the template file.

@param {string} file            The template file.
@param {Object} replacements    The replacements.
@param {Object} templateFileLog The template file log.
Compile the template file .