lib/template-generator.js
function renderProblemFiles(files, currDir) {
	return _.map(files, function(fileDetails) {
		return filesTemplate({
			fileId: _.camelCase(fileDetails.filePath),
			filePath: fileDetails.filePath.replace(currDir, ''),
			errorCount: fileDetails.errorCount,
			warningCount: fileDetails.warningCount
		});
	}).join('\n');
}
function renderProblemFiles(files, currDir) {
	return _.map(files, function(fileDetails) {
		return filesTemplate({
			fileId: _.camelCase(fileDetails.filePath),
			filePath: fileDetails.filePath.replace(currDir, ''),
			errorCount: fileDetails.errorCount,
			warningCount: fileDetails.warningCount
		});
	}).join('\n');
}
function renderProblemFiles ( files , currDir ) { return _ . map ( files , function ( fileDetails ) { return filesTemplate ( { fileId : _ . camelCase ( fileDetails . filePath ) , filePath : fileDetails . filePath . replace ( currDir , '' ) , errorCount : fileDetails . errorCount , warningCount : fileDetails . warningCount } ) ; } ) . join ( '\n' ) ; }
Renders list of problem files
@param {array} files
@param {String} currDir Current working directory
@return {string} HTML string describing the files.
Renders list of problem files