aboutsummaryrefslogtreecommitdiff
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js66
1 files changed, 66 insertions, 0 deletions
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;
+
+});