mustache-express.js
function loadTemplateAndPartials(templateFile, partialsDirectory, partialsExtension, options, cache, callback) {
	handleFile(null, templateFile, options, cache, function(err, partialData) {
		if (err) {
			return callback(err);
		}

		return loadAllPartials(partialData.partials, partialsDirectory, partialsExtension, options, cache, null, function(err, partials) {
			if (err) {
				return callback(err);
			}

			return callback(null, partialData.data, partials);
		});
	});
}
function loadTemplateAndPartials(templateFile, partialsDirectory, partialsExtension, options, cache, callback) {
	handleFile(null, templateFile, options, cache, function(err, partialData) {
		if (err) {
			return callback(err);
		}

		return loadAllPartials(partialData.partials, partialsDirectory, partialsExtension, options, cache, null, function(err, partials) {
			if (err) {
				return callback(err);
			}

			return callback(null, partialData.data, partials);
		});
	});
}
function loadTemplateAndPartials ( templateFile , partialsDirectory , partialsExtension , options , cache , callback ) { handleFile ( null , templateFile , options , cache , function ( err , partialData ) { if ( err ) { return callback ( err ) ; } return loadAllPartials ( partialData . partials , partialsDirectory , partialsExtension , options , cache , null , function ( err , partials ) { if ( err ) { return callback ( err ) ; } return callback ( null , partialData . data , partials ) ; } ) ; } ) ; }
Load the root template, and all of the partials that go with it
Load the root template and all of the partials that go with it