mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
3ded75ca4f
Closes #418. * Moved the app config behind the promise wall (I couldn't reliably assign generated uuid to the ghost object AND have access to an automatically created db from fixtures AND not have circular reference (try including api in ghost.js ;) )) * Added new functionality to `ghost.init()`, which is responsible for the first run bit (I'm thinking plopping a filter or an action in there for future devs) * Modified `.gitignore` so the `.png`s casper generates aren't added * Fixed ambiguity and typos here and there, see code |
||
---|---|---|
.. | ||
client | ||
server | ||
shared | ||
test | ||
ghost.js | ||
README.md |
Core
Core contains the bread and butter of ghost. It is currently divided up into:
- client - the assets, helpers, models, view and templates for rendering the admin panel backbone app
- server - the controllers & helpers for driving the server side app along with the model, api, and data
- shared - just contains lang for now, although it's not shared yet, more stuff should go here soon like handlebars helpers
- test - contains unit tests and a set of html prototypes of the admin UI. Really, this folder should reflect all of core
- 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 & blog
This structure is by no means final and recommendations are more than welcome.