Files
i-buy.properties/js/templates.js
2017-02-07 12:55:56 -06:00

26 lines
576 B
JavaScript

/*globals ibuyproperties*/
ibuyproperties.templates=(function(){
var allTemplates={
navigation:["nav"],
mainPages:["Home","Sell"],
misc:["impressum","about","debug"],
partials:["sell_userInfo","sell_propInfo","sell_propAddress","sell_thanks","sell_sendError"]
};
function getAll(){
var outArr=[];
return outArr.concat(allTemplates.mainPages,allTemplates.navigation,allTemplates.misc,allTemplates.partials);
}
function getType(type){
return allTemplates[type];
}
return {
getAll:getAll,
getType:getType
};
}());