Mercurial > wikked
view static/js/wikked.js @ 101:13249e5ca51c
Big refactor for better database caching:
- Using SQL alchemy instead of raw SQLite.
- Better architecture and internal APIs.
- Fixed some issues where the database was not used correctly.
- Fixed some problems with querying pages.
Got rid of `Makefile`, now using `grunt`.
Now using a custom `Bootstrap` include file.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 05 Nov 2013 08:13:18 -0800 |
parents | b03f083c3a29 |
children | d29e2f337b00 |
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: 'js/jquery-1.8.3.min', underscore: 'js/underscore-min', backbone: 'js/backbone-min', handlebars: 'js/handlebars-1.0.rc.1', moment: 'js/moment.min', text: 'js/text', bootstrap_modal: 'bootstrap/js/bootstrap-modal', bootstrap_tooltip: 'bootstrap/js/bootstrap-tooltip' }, shim: { 'jquery': { exports: '$' }, 'underscore': { exports: '_' }, 'backbone': { deps: ['underscore', 'jquery'], exports: 'Backbone' }, 'handlebars': { exports: 'Handlebars' }, 'bootstrap_modal': { deps: ['jquery'] }, 'bootstrap_tooltip': { 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([ 'js/wikked/app', 'js/wikked/handlebars', 'backbone', 'text' ], function(app, hb, Backbone, textExtension) { var router = new app.Router(); Backbone.history.start();//{ pushState: true }); });