1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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;
});
|