Ghost/core/client/init.js

34 lines
691 B
JavaScript
Raw Normal View History

/*globals window, $, _, Backbone */
(function () {
"use strict";
var Ghost = {
Layout : {},
Views : {},
Collections : {},
Models : {},
settings: {
apiRoot: '/api/v0.1'
},
// This is a helper object to denote legacy things in the
// middle of being transitioned.
temporary: {},
currentView: null,
router: null
};
2013-06-08 06:16:28 +04:00
Ghost.init = function () {
Ghost.router = new Ghost.Router();
Backbone.history.start({
pushState: true,
hashChange: false,
root: '/ghost'
});
};
window.Ghost = Ghost;
}());