mirror of
https://github.com/bendtherules/slide_in_demo.git
synced 2026-08-18 13:52:00 +00:00
23 lines
409 B
JavaScript
23 lines
409 B
JavaScript
|
|
function init_marionette () {
|
|
var Mn = Backbone.Marionette;
|
|
var Bb = Backbone;
|
|
|
|
var RootView = Mn.View.extend({
|
|
template:'#template'
|
|
});
|
|
|
|
var App = Mn.Application.extend({
|
|
region: '#slide',
|
|
|
|
onStart : function(app,options) {
|
|
this.showView(new RootView(options));
|
|
}
|
|
});
|
|
|
|
var myApp = new App();
|
|
var tmp_model = new Bb.Model(data)
|
|
myApp.start({model: tmp_model });
|
|
}
|
|
|
|
init_marionette(); |