I have a puppet that I want to bind directly to the page element.
App.Views.Layouts.Unauthenticated = Backbone.Marionette.Layout.extend template: "layouts/unauthenticated" regions: content: "#content" header: "#header" footer: "#footer" views: {} initialize:-> @el = $("body") @delegateEvents()
and then in the application, I do it
App.layouts.unauthenticated = new App.Views.Layouts.Unauthenticated() App.layouts.unauthenticated.render()
The layout is not attached to the page. How to attach it to the body, while I already used the body as "el", since I do not need additional wrappers.
source share