// For any third party dependencies, like jQuery, place them in the lib folder.

// Configure loading modules from the lib directory,
// except for 'app' ones, which are in a sibling
// directory.
requirejs.config({
  baseUrl: 'js',
  paths: {
    // the left side is the module ID,
    // the right side is the path to
    // the jQuery file, relative to baseUrl.
    // Also, the path should NOT include
    // the '.js' file extension.
    router:         'app/router',
    parts:          'app/parts',
    controllers:    'app/controllers',
    data:           'app/data',
    models:         'app/models',
    views:          'app/views',
    bootstrap:      'lib/bootstrap',
    twbs:           'lib/twbs',
    jquery:         'lib/jquery',
    Handlebars:     'lib/handlebars',
    text:           'lib/text',
    hbar:           'lib/hbars',
    bootswatchlet:  'lib/bootswatchlet'
  },
  shim: {
    bootstrap: {
      deps: ['jquery']
    },
    twbs: {
      deps: ['bootstrap']
    },
    Handlebars: {
      deps: ['bootstrap'],
      exports: 'Handlebars'
    },
    'jquery': {
      exports: '$'
    },
    bootswatchlet: {
      deps: ['twbs']
    }
  },
  hbars: {
   extension: '.hbar' // default = '.html'
  }
});

// Start loading the main app file. Put all of
// your application logic in there.
require(['app/main'], function () {
  // You can put stuff in here too.
});

// For any third party dependencies, like jQuery, place them in the lib folder.

// Configure loading modules from the lib directory,
// except for 'app' ones, which are in a sibling
// directory.
requirejs.config({
  baseUrl: 'js',
  paths: {
    // the left side is the module ID,
    // the right side is the path to
    // the jQuery file, relative to baseUrl.
    // Also, the path should NOT include
    // the '.js' file extension.
    router:         'app/router',
    parts:          'app/parts',
    controllers:    'app/controllers',
    data:           'app/data',
    models:         'app/models',
    views:          'app/views',
    bootstrap:      'lib/bootstrap',
    twbs:           'lib/twbs',
    jquery:         'lib/jquery',
    Handlebars:     'lib/handlebars',
    text:           'lib/text',
    hbar:           'lib/hbars'
  },
  shim: {
    bootstrap: {
      deps: ['jquery']
    },
    twbs: {
      deps: ['bootstrap']
    },
    Handlebars: {
      deps: ['bootstrap'],
      exports: 'Handlebars'
    },
    'jquery': {
      exports: '$'
    }
  },
  hbars: {
   extension: '.hbar' // default = '.html'
  }
});

// Start loading the main app file. Put all of
// your application logic in there.
require(['app/main'], function () {
  // You can put stuff in here too.
});

Remove bootswatchlet to improve load performance.
Remove bootswatchlet to improve load performance.
