Ghost/core/client/initializers/ghost-config.js
Sebastian Gierlinger 05b3606fd3 Remove inline script from default.hbs
no issue
- added config values as data attributes
- removed inline script
- removed current-user.js
2014-07-21 20:00:54 +02:00

17 lines
551 B
JavaScript

var ConfigInitializer = {
name: 'config',
initialize: function (container, application) {
var apps = $('body').data('apps'),
fileStorage = $('body').data('filestorage');
application.register('ghost:config', {apps: apps, fileStorage: fileStorage}, {instantiate: false});
application.inject('route', 'config', 'ghost:config');
application.inject('controller', 'config', 'ghost:config');
application.inject('component', 'config', 'ghost:config');
}
};
export default ConfigInitializer;