mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
30b4eb07f7
- This is a first pass at getting a more logical structure. The focus is on moving from admin/frontend to client/server. - The location of the databases is highly important, this isn't expected to change again In the future - client/assets should probably become public/ - more stuff should be shared (helpers etc) - cleanup some confusion around tpl and views
34 lines
691 B
JavaScript
34 lines
691 B
JavaScript
/*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
|
|
};
|
|
|
|
Ghost.init = function () {
|
|
Ghost.router = new Ghost.Router();
|
|
Backbone.history.start({
|
|
pushState: true,
|
|
hashChange: false,
|
|
root: '/ghost'
|
|
});
|
|
};
|
|
|
|
window.Ghost = Ghost;
|
|
|
|
}()); |