Backbone.Marionette vs Backbone-Boilerplate

2019-03-12 21:53发布

I'm new to Backbone and trying to decide how to approach development.

At the moment I'm wondering when people would use backbone.marionette over backbone-boilerplate?

From what I can tell Marionette is a lot more prescriptive, but is this the way that most people approach development here?

1条回答
相关推荐>>
2楼-- · 2019-03-12 22:32

Marionette automates a lot of housekeeping work with respect to views that I believe Backbone should've included in the first place. Marionette is actively maintained and found it to be extremely useful and flexible for my project.

backbone-boilerplate, from what I see, is more of a way to organize your code into modules but doesn't touch Backbone views.

You should be able to use boilerplate for code organization, and Marionette for more-easily-manageable views. I believe they address complementing issues.

Marionette recently added an AMD version so it is now compatible with RequireJS out of the box.

查看更多
登录 后发表回答