1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
define([ './main-view' ], function (MainView) { var App = new Marionette.Application(); App.on('start', function (options) { var viewOptions = _.extend(options, { model: new Backbone.Model() }); var mainView = new MainView(viewOptions); mainView.render().refresh(); }); return App; });