2 |
Organizing your application using Modules (require.js)
3 |
4 | Unfortunately Backbone.js does not tell you how to organize your code, leaving many developers in the dark regarding how to load scripts and lay out their development environments.
5 |
6 |
7 | This was quite a different decision to other JavaScript MVC frameworks who were more in favor of setting a development philosophy. Hopefully this tutorial will allow you to build a much more robust project with great separation of concerns between design and code.
8 |
9 |
10 | This tutorial will get you started on combining Backbone.js with AMD (Asynchronous Module Definitions) through Require.js. In addition to Require.js, Text.js plays a significant role by loading the html templates and preparing them for the underscore templating process.
11 |
12 | read full article
13 |
14 |
15 | Take advantage of Require.js compiler! My dying words would be to tell you to try r.js
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/_site/examples/modular-backbone/templates/projects/projectsListTemplate.html:
--------------------------------------------------------------------------------
1 |
2 |
Projects
3 |
4 | This site is by no means the definite guide to backbone.js and all corrections and contributions are welcome. About Backbone Tutorials
5 |
6 |
7 | As single page apps and large scale javascript applications become more prominent on the web, useful resources for those developers who are jumping the ship are crucial
8 |
9 |
10 | I started this site to not only consolidate my understanding of backbone.js but to also document what I have learned thus far for myself and others.
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/_site/examples/modular-backbone/templates/sidebar/sidebarTemplate.html:
--------------------------------------------------------------------------------
1 |