0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app.js
Felix Rieseberg 88dde9ed4a {{gh-path}} Handlebars helper, returning paths
- Uses utils/ghost-paths to resolve paths
- {{gh-path}} or {{gh-path ‘blog’}} for Ghost’s root (mysubdir/)
- {{gh-path ‘admin’}} for Ghost’s admin root (/mysubdir/ghost)
- {{gh-path ‘api’}} for Ghost’s admin root (/mysubdir/ghost/api/v0.1)
2014-09-22 10:17:24 -07:00

22 lines
584 B
JavaScript
Executable file

import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import 'ghost/utils/link-view';
import 'ghost/utils/text-field';
import configureApp from 'ghost/config';
import ghostPathsHelper from 'ghost/helpers/ghostPaths';
Ember.MODEL_FACTORY_INJECTIONS = true;
var App = Ember.Application.extend({
modulePrefix: 'ghost',
Resolver: Resolver['default']
});
// Runtime configuration of Ember.Application
configureApp(App);
loadInitializers(App, 'ghost');
Ember.Handlebars.registerHelper('gh-path', ghostPathsHelper);
export default App;