task.js
function getDataSource(projectConfig) {
	var api = {};

	api.getDataForPath = function getDataForPath(requestedPath) {
		var templateData, dataPath;

		dataPath = path.resolve(projectConfig.paths.src.views.data, requestedPath + '.json');

		try{
			templateData = require(dataPath);
		} catch(err){
			templateData = {};
		}

		return templateData;
	};

	api.getPaths = function getPaths() {
		return;
	};

	return api;
}
function getDataSource(projectConfig) {
	var api = {};

	api.getDataForPath = function getDataForPath(requestedPath) {
		var templateData, dataPath;

		dataPath = path.resolve(projectConfig.paths.src.views.data, requestedPath + '.json');

		try{
			templateData = require(dataPath);
		} catch(err){
			templateData = {};
		}

		return templateData;
	};

	api.getPaths = function getPaths() {
		return;
	};

	return api;
}
function getDataSource ( projectConfig ) { var api = { } ; api . getDataForPath = function getDataForPath ( requestedPath ) { var templateData , dataPath ; dataPath = path . resolve ( projectConfig . paths . src . views . data , requestedPath + '.json' ) ; try { templateData = require ( dataPath ) ; } catch ( err ) { templateData = { } ; } return templateData ; } ; api . getPaths = function getPaths ( ) { return ; } ; return api ; }
Basic data source api pending it being split out to another file
Basic data source api pending it being split out to another file