Ghost/core/server/api
Gabor Javorszky 212711d896 Added package.js support for themes (and plugins)
Closes #2081
* Amended require-tree to populate availableThemes and availablePlugins to use full file names (`basename.ext`) as keys instead of just basename. This way `image.jpg`, `image.png`, `image.gif` won't overwrite the `image` key.
* Amended require-tree to allow package.json file parsing to return the contents of the file as json on the `package.json` key.
* settings api populates theme data `package` if it exists. Otherwise it assigns `false` to it
* `general.hbs` (salute) was reworked to if there is the package key on the theme is not false, it will use the `name` and `version` keys of that. You can break it by not having a `name` or `version` in the package.json file.
* Added error and warning messages for package.json file parse errors and misses
2014-02-13 23:57:58 +00:00
..
db.js Improve bootstrap flow of a Ghost application 2014-02-07 17:34:21 -05:00
index.js Improve bootstrap flow of a Ghost application 2014-02-07 17:34:21 -05:00
notifications.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
posts.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
settings.js Added package.js support for themes (and plugins) 2014-02-13 23:57:58 +00:00
tags.js remove ghost.settings and ghost.notifications 2013-12-06 09:51:35 +01:00
users.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00