Backbone.js的最好的和巨大的应用require.js样板 [英] best backbone.js and require.js boilerplate for huge apps

查看:104
本文介绍了Backbone.js的最好的和巨大的应用require.js样板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找一个好的Backbone.js的+ require.js锅炉板为我的应用程序,因为这会让我如何模块化我的code和让我开始一个好主意。我使用Backbone.js的-AMD-样板(链接),但我不知道是否有其他一些锅炉板比这更好的。
我不想多放纵自己到任何其他装载机或框架,让事情变得简单了我的项目。
我在年初所以我只是专注于Backbone.js的和require.js(text.js加载我的HTML模板)。
需要在这个guyz你的意见
日Thnx

i'm looking for a good backbone.js + require.js boiler plate for my app as this will give me a good idea of how to modularize my code and get me started. i'm using backbone.js-AMD-Boilerplate ( link ) but i'm not sure if there is some other boiler plate better than this. i don't want to indulge myself more into any other loader or framework to keep things simple for my project. i'm in the beginning so i'm just focusing on backbone.js and require.js ( text.js to load my html templates ). need your opinions on this guyz thnx

推荐答案

这似乎是最流行的骨干样板 ...

This seems to be the most popular backbone boilerplate...

至于requirejs你可能会重新考虑不要使用任何模块加载到你的应用程序是过去的最初阶段,你确实有许多模块 - 这是很容易开发/调试这样的,这是不难添加一个模块加载以后只要你避免使用全局变量,并封装在你的模块功能(){...你...模块}

With regards to requirejs you may reconsider against using any module loader until your app is past its initial stages and you indeed have many modules - it is much easier to develop/debug this way and it is not difficult to add a module loader later as long as you avoid using globals and encapsulate your modules in function () { ... your module ... }.

这仅仅是可能不会受到谁忘了是怎么回事,当你刚开始使用模块加载器的人来支持我的个人意见;)

That is only my personal opinion that probably will not be supported by people who have forgotten how it was when you're just starting to use module loaders ;)

这篇关于Backbone.js的最好的和巨大的应用require.js样板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆