'hbs!template/blueprint/registry/create/layout', 'marionette'], function(App, formLayoutTpl, Marionette) { App.module("Registry.Create", function(CreateRegistry, App) { //layout for all pages, main thing that is loaded var Layout = Marionette.Layout.extend({ template: layoutTpl , className: 'wrapper set-top' , regions: { form_container: '#main-form-container' } }); var FormLayout = Marionette.Layout.extend({ template: formLayoutTpl , regions: {form: '#form-wrapper'} , initialize: function () { this.listenTo(this.form, 'show', function () { this.$('.selectpicker').selectpicker(); }); this.listenTo(this.model, 'invalid', function (data) { //... }); } });