Mercurial > wikked
view static/js/wikked.js @ 61:130eccd396d8
Now using Boostrap with LESS.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 06 Feb 2013 08:22:31 -0800 |
parents | 8250c977bc50 |
children | 97efd73f2158 |
line wrap: on
line source
/** * RequireJS configuration. * * We need to alias/shim some of the libraries. */ require.config({ urlArgs: "bust=" + (new Date()).getTime(), paths: { jquery: 'jquery-1.8.3.min', underscore: 'underscore-min', backbone: 'backbone-min', handlebars: 'handlebars-1.0.rc.1', bootstrap_modal: '/bootstrap/js/bootstrap-modal' }, shim: { 'jquery': { exports: '$' }, 'underscore': { exports: '_' }, 'backbone': { deps: ['underscore', 'jquery'], exports: 'Backbone' }, 'handlebars': { exports: 'Handlebars' }, 'bootstrap_modal': { deps: ['jquery'] } } }); //-------------------------------------------------------------// /** * Entry point: run Backbone! * * We also import scripts like `handlebars` that are not used directly * by anybody, but need to be evaluated. */ require([ 'wikked/app', 'wikked/handlebars', 'backbone', 'text' ], function(app, hb, Backbone, textExtension) { var router = new app.Router(); Backbone.history.start();//{ pushState: true }); });