summaryrefslogtreecommitdiffstats
path: root/_site/examples/todo-app/js/main.js
blob: 4c798e4072c0df31e27310ed8cc04e2baff55fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Author: Thomas Davis <thomasalwyndavis@gmail.com>
// Filename: main.js

// Require.js allows us to configure shortcut alias
// Their usage will become more apparent futher along in the tutorial.
require.config({
  paths: {
    jquery: 'libs/jquery/jquery-min',
    underscore: 'libs/underscore/underscore-min',
    backbone: 'libs/backbone/backbone-optamd3-min',
    text: 'libs/require/text'
  }

});

require(['views/app'], function(AppView){
  var app_view = new AppView;
});