Backbone.Marionette vs Backbone-Boilerplate

淺唱寂寞╮ 提交于 2019-12-20 10:39:09

问题


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:


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.



来源:https://stackoverflow.com/questions/10510050/backbone-marionette-vs-backbone-boilerplate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!