Skip to content

Instantly share code, notes, and snippets.

@marceloverdijk
Created January 24, 2012 20:36
Show Gist options
  • Save marceloverdijk/1672413 to your computer and use it in GitHub Desktop.
Save marceloverdijk/1672413 to your computer and use it in GitHub Desktop.
require.config({
baseUrl: 'js/app',
paths: {
cs: '../lib/requirejs/cs-0.3.2',
backbone: '../lib/backbone/backbone-0.5.3.min',
jquery: '../lib/jquery/jquery-1.6.4.min',
'jquery.mobile': '../lib/jquery.mobile/jquery.mobile-1.0.min',
text: '../lib/requirejs/text-1.0.2.min',
underscore: '../lib/underscore/underscore-1.3.1.min',
use: '../lib/requirejs/use-0.1.0'
},
urlArgs: 'v=' + (new Date()).getTime(),
use: {
backbone: {
deps: ['jquery', 'use!underscore'],
attach: "Backbone"
},
'jquery.mobile': {
deps: ['jquery']
},
underscore: {
attach: '_'
}
}
});
require([
'jquery',
'cs!App'
], function ($, App) {
$(function($) {
console.log('Bootstrapping Kapsalon Reflection App...');
new App();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment