summaryrefslogtreecommitdiffstats
path: root/examples/todo-app/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/todo-app/js/main.js')
-rw-r--r--examples/todo-app/js/main.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/todo-app/js/main.js b/examples/todo-app/js/main.js
new file mode 100644
index 0000000..4c798e4
--- /dev/null
+++ b/examples/todo-app/js/main.js
@@ -0,0 +1,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;
+});