26 lines
576 B
JavaScript
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
|
|
};
|
|
}()); |