Initial checkin
This commit is contained in:
26
js/templates.js
Normal file
26
js/templates.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*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
|
||||
};
|
||||
}());
|
||||
Reference in New Issue
Block a user