Mercurial > wikked
comparison static/js/wikked.js @ 60:8250c977bc50
Moved static files to the root directory.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 05 Feb 2013 14:49:34 -0800 |
parents | wikked/static/js/wikked.js@9658edea3121 |
children | 130eccd396d8 |
comparison
equal
deleted
inserted
replaced
59:59ecc742ab8e | 60:8250c977bc50 |
---|---|
1 /** | |
2 * RequireJS configuration. | |
3 * | |
4 * We need to alias/shim some of the libraries. | |
5 */ | |
6 require.config({ | |
7 urlArgs: "bust=" + (new Date()).getTime(), | |
8 paths: { | |
9 jquery: 'jquery-1.8.3.min', | |
10 underscore: 'underscore-min', | |
11 backbone: 'backbone-min', | |
12 handlebars: 'handlebars-1.0.rc.1', | |
13 bootstrap: '/bootstrap/js/bootstrap.min' | |
14 }, | |
15 shim: { | |
16 'jquery': { | |
17 exports: '$' | |
18 }, | |
19 'underscore': { | |
20 exports: '_' | |
21 }, | |
22 'backbone': { | |
23 deps: ['underscore', 'jquery'], | |
24 exports: 'Backbone' | |
25 }, | |
26 'handlebars': { | |
27 exports: 'Handlebars' | |
28 }, | |
29 'bootstrap': { | |
30 deps: ['jquery'] | |
31 } | |
32 } | |
33 }); | |
34 | |
35 //-------------------------------------------------------------// | |
36 | |
37 /** | |
38 * Entry point: run Backbone! | |
39 * | |
40 * We also import scripts like `handlebars` that are not used directly | |
41 * by anybody, but need to be evaluated. | |
42 */ | |
43 require([ | |
44 'wikked/app', | |
45 'wikked/handlebars', | |
46 'backbone', | |
47 'bootstrap', | |
48 'text' | |
49 ], | |
50 function(app, hb, Backbone, textExtension) { | |
51 | |
52 var router = new app.Router(); | |
53 Backbone.history.start();//{ pushState: true }); | |
54 | |
55 }); | |
56 |