From 550e2f03ad0b60b3c9db3d68dbf014dcb740a2ff Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 17 Jan 2017 15:37:25 +0530 Subject: Initial Commit --- src/config.js | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/config.js (limited to 'src/config.js') diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..5406536 --- /dev/null +++ b/src/config.js @@ -0,0 +1,66 @@ +// Main Config File + +// renderArea stores where the dynamic template should be loaded +// module stores metadata about the modules. The structure should be similar to given below +// 'moduleName':{ +// scripts:[],//Array of paths of the module dependent scripts +// template:string, 'path to the template' +// } +// +define([], function() { + + + var CONFIG = { + appName:'Boiler Plate', + renderArea: '#renderArea', + common: ['common/header'], + module: { + 'layout': { + scripts: [ + 'common/header' + ], + main: 'common/header', + rejectcommon: true + }, + 'login': { + scripts: [ + 'login/login.model', + 'login/login' + ], + template: "../partials/login/login.html", + main: 'login/login', + rejectcommon: true + }, + 'dashboard': { + scripts: [ + 'dashboard/dashboard.model', + 'dashboard/dashboard', + 'common/header' + ], + main: 'dashboard/dashboard', + template: "../partials/dashboard/dashboard.html", + childView: { + mainView: '#header', + template: '../partials/common/header.html' + } + }, + 'test': { + scripts: [], + template: "../partials/test/test.html", + childView: { + mainView: '#header', + template: '../partials/common/header.html' + } + }, + + '404': { + scripts: [], + template: "../partials/common/404.html", + rejectcommon: true + } + } + } + + return CONFIG; + +}); -- cgit v1.2.3