0

I am new to backbone / Marionette. I am working on complex application building on Marionette and Handlebars templates.

We are using RequireJs for AMD loader.

Code structure

We have structured our code into modules and each module will have its templates, views and controllers.

  1. Assets
    • js
      • libs
      • modules
        • login
          • templates
          • views
          • LoginController.js
        • registration
          • templates
          • views
          • RegistrationController.js

I am looking for grunt with requirejs build samples for this code structure. I was not able to find any link which meets our code structure.

4

1 回答 1

0

这是来自 Backbone.Marionette 的创建者 Derick Bailey 的示例项目:https ://github.com/derickbailey/bbclonemail/tree/master/public/javascripts/bbclonemail

它的代码结构与您的非常相似,但他没有使用 requirejs,因为他依赖于模块系统。

希望这可以帮助。

于 2013-10-11T23:17:03.573 回答