私は次のコードを持っています
$ ->
class MainLayout extends Marionette.Layout
template: Handlebars.compile $("#main_layout_hb").html()
regions:
header : "#header"
options : "#options"
footer : "#footer"
class MainRegion extends Marionette.Region
el:"#main_wrap"
class App extends Marionette.Application
main_region : new MainRegion
main_layout : new MainLayout
onStart: =>
@main_region.show(@main_layout)
# start the backbone history for URL routing
if Backbone.history
Backbone.history.start()
app = new App
app.start()
このページの例に従おうとしていますhttps://github.com/marionettejs/backbone.marionette/wiki/The-relationship-between-regions-and-layouts
しかし、コードを実行すると、テンプレート「#main_layout_hb」がリージョンに挿入されません。何が起こっているのですか?