Last change
on this file since 465 was
463,
checked in by hendrikvanantwerpen, 12 years ago
|
Working towards Heroku deployment, restructuring for that and to allow coffee builds.
|
File size:
840 bytes
|
Rev | Line | |
---|
[443] | 1 | define([ |
---|
[463] | 2 | "./app/Content", |
---|
| 3 | "./app/Page", |
---|
| 4 | "./app/Router", |
---|
| 5 | "./routes", |
---|
| 6 | "./store", |
---|
| 7 | "./store/request", |
---|
| 8 | "./ui/MainMenu", |
---|
| 9 | "dojo/_base/array", |
---|
| 10 | "dojo/parser", |
---|
| 11 | "dojo/request/registry", |
---|
| 12 | "./stddeps", |
---|
| 13 | "dojo/domReady!" |
---|
| 14 | ], function(Content, Page, Router, routes, store, request, MainMenu, array, parser, registry) { |
---|
| 15 | |
---|
| 16 | registry.register(/.*/,request); |
---|
| 17 | |
---|
[443] | 18 | parser.parse(); |
---|
| 19 | store.info() |
---|
| 20 | .then(function(){ |
---|
| 21 | new MainMenu({},"menu").startup(); |
---|
| 22 | array.forEach(routes,function(route){ |
---|
| 23 | Router.register(route); |
---|
| 24 | }); |
---|
| 25 | Router.startup(); |
---|
| 26 | },function(){ |
---|
| 27 | Content.startup(); |
---|
| 28 | Content.set(new Page({ |
---|
| 29 | templateString: "<div>Application database is not properly configured. Contact your system administrator.</div>" |
---|
| 30 | })); |
---|
| 31 | }); |
---|
| 32 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.