src/templates.js
function getTemplates(app) {
	var results = [];

	if (extensions && extensions.hasOwnProperty('templates')
		&& extensions.templates.hasOwnProperty(app)
	) {
		var sourceArray = extensions.templates[app];

		for (index = 0; index < sourceArray.length; ++index) {
		    results.push(app + '.' + sourceArray[index]);
		}
	}

	return results;
}
function getTemplates(app) {
	var results = [];

	if (extensions && extensions.hasOwnProperty('templates')
		&& extensions.templates.hasOwnProperty(app)
	) {
		var sourceArray = extensions.templates[app];

		for (index = 0; index < sourceArray.length; ++index) {
		    results.push(app + '.' + sourceArray[index]);
		}
	}

	return results;
}
function getTemplates ( app ) { var results = [ ] ; if ( extensions && extensions . hasOwnProperty ( 'templates' ) && extensions . templates . hasOwnProperty ( app ) ) { var sourceArray = extensions . templates [ app ] ; for ( index = 0 ; index < sourceArray . length ; ++ index ) { results . push ( app + '.' + sourceArray [ index ] ) ; } } return results ; }
Get the available templates

@param   string  app  'frontend' | 'backend'

@return  array
Get the available templates