lib/nginx.js
function parseFile(filePath, encoding, callback) {
	return fs.readFile(filePath, encoding, function(err, fileString) {
		if (err) {
			return callback(err);
		}

		fileString = expandIncludes(fileString, path.dirname(filePath));

		return parse(fileString, callback);
	});
}
function parseFile(filePath, encoding, callback) {
	return fs.readFile(filePath, encoding, function(err, fileString) {
		if (err) {
			return callback(err);
		}

		fileString = expandIncludes(fileString, path.dirname(filePath));

		return parse(fileString, callback);
	});
}
function parseFile ( filePath , encoding , callback ) { return fs . readFile ( filePath , encoding , function ( err , fileString ) { if ( err ) { return callback ( err ) ; } fileString = expandIncludes ( fileString , path . dirname ( filePath ) ) ; return parse ( fileString , callback ) ; } ) ; }
Reads and parses a file into an Nginx Config object Expands file includes.
Reads and parses a file into an Nginx Config object Expands file includes .