0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
Hannah Wolfe 32bbf2ba57 issue #165, issue #124 - cleaning up ghostGlobals
- ghost.js - globals/globalConfig has become settings / settingsCache to make it clearer
- app.js - the ghostGlobals local cache is gone, and the use of res.locals has been cleaned up and simplified, although this needs to be properly split into frontend and admin locals (to be finished in #124)
- frontend/index.js - doesn't need to be passed globals and nav properties as res.locals does this for us
2013-06-17 23:12:13 +01:00
..
admin Fixes wrong conversion from Compass to Bourbon. 2013-06-17 14:49:37 +01:00
frontend issue #165, issue #124 - cleaning up ghostGlobals 2013-06-17 23:12:13 +01:00
lang Bookshelf provider abstraction and tests 2013-05-23 23:02:41 -05:00
shared Merge pull request #163 from jgable/exportData 2013-06-17 01:19:48 -07:00
test Merge pull request #163 from jgable/exportData 2013-06-17 01:19:48 -07:00
ghost.js issue #165, issue #124 - cleaning up ghostGlobals 2013-06-17 23:12:13 +01:00
README.md Initial commit to GitHub repo 2013-05-11 17:44:25 +01:00

Core

Core contains the bread and butter of ghost. It is currently divided up into:

  • admin - the views, controllers, assets and helpers for rendering & working the admin panel
  • frontend - the controllers & helpers for creating the frontend of the blog. Views & assets live in themes
  • lang - the current home of everything i18n, this was done as a proof of concept on a very early version of the prototype and needs love
  • shared - basically everything to do with data & models. The sqlite db file lives in the data folder here. This is the part that needs the most work so it doesn't make much sense yet, and is also the highest priority
  • test - currently contains two sad unit tests and a set of html prototypes of the admin UI. Really, this folder should reflect all of core. It is my personal mission to make that happen ASAP & get us linked up with Travis.
  • ghost.js - currently both the glue that binds everything together and what gives us the API for registering themes and plugins. The initTheme function is a bit of a hack which lets us serve different views & static content up for the admin & frontend.

This structure is by no means final and recommendations are more than welcome.