lib/renderer.js
function (paths) {
			var self = this;
			if (typeof paths === 'string') {
				paths = [].slice.call(arguments, 0);
			}
			paths.forEach(function (name) {
				// DEPRECATED: checking both themes and templates folders for the right template file
				// when updated, should just look for 'self.compileFile(name));'
				// name will need to be full path, or contain the relevant subfolders e.g. laserwolf/views/subject/foo.dust

				if (fs.existsSync(path.join(config.path.themes, name))) {
					// Themes
					self.compileFile(path.join(config.path.themes, name));
				} else if (fs.existsSync(path.join(config.path.templates, name))) {
					// Old shunter-proxy
					self.compileFile(path.join(config.path.templates, name));
				} else if (fs.existsSync(name)) {
					// Full path
					self.compileFile(name);
				} else {
					config.log.info('Could not find template ' + name);
				}
				// End DEPRECATED
			});
		}
function (paths) {
			var self = this;
			if (typeof paths === 'string') {
				paths = [].slice.call(arguments, 0);
			}
			paths.forEach(function (name) {
				// DEPRECATED: checking both themes and templates folders for the right template file
				// when updated, should just look for 'self.compileFile(name));'
				// name will need to be full path, or contain the relevant subfolders e.g. laserwolf/views/subject/foo.dust

				if (fs.existsSync(path.join(config.path.themes, name))) {
					// Themes
					self.compileFile(path.join(config.path.themes, name));
				} else if (fs.existsSync(path.join(config.path.templates, name))) {
					// Old shunter-proxy
					self.compileFile(path.join(config.path.templates, name));
				} else if (fs.existsSync(name)) {
					// Full path
					self.compileFile(name);
				} else {
					config.log.info('Could not find template ' + name);
				}
				// End DEPRECATED
			});
		}
function ( paths ) { var self = this ; if ( typeof paths === 'string' ) { paths = [ ] . slice . call ( arguments , 0 ) ; } paths . forEach ( function ( name ) { // DEPRECATED: checking both themes and templates folders for the right template file // when updated, should just look for 'self.compileFile(name));' // name will need to be full path, or contain the relevant subfolders e.g. laserwolf/views/subject/foo.dust if ( fs . existsSync ( path . join ( config . path . themes , name ) ) ) { // Themes self . compileFile ( path . join ( config . path . themes , name ) ) ; } else if ( fs . existsSync ( path . join ( config . path . templates , name ) ) ) { // Old shunter-proxy self . compileFile ( path . join ( config . path . templates , name ) ) ; } else if ( fs . existsSync ( name ) ) { // Full path self . compileFile ( name ) ; } else { config . log . info ( 'Could not find template ' + name ) ; } // End DEPRECATED } ) ; }
Just used for testing?
Just used for testing?