[Backbone] Make Backbone Better With Extensions, backboneextensions

Source: Internet
Author: User
Tags derick

[Backbone] Make Backbone Better With Extensions, backboneextensions

Backbone is becoming wildly popular as a web application development framework. along with this popularity comes countless extensions and plugins to enhance the power of the framework, and fill in holes that other felt needed filling. let's take a look at some of the best choices.

Backbone. Marionette

Developed by Derick Bailey, this extension is quite large and is my personal favorite. rather than adding one or two features to Backbone, Derick decided to fill in all the biggest holes that he felt existed. here's what he says about it in the readme file of theGitHub project.

"Backbone. marionette is a composite application library for Backbone. js that aims to simplify the construction of large scale JavaScript applications. it is a collection of common design and implementation patterns found in the applications that I (Derick Bailey) have been building with Backbone, and between des varous pieces using red by composite application ubuntures, such as Microsoft's "Prism" framework."

Let's take a closer look at what Marionette provides us:

  • Application: This is a central object that everything in your application can communicate through. it offers a way to set up the main view (s) of your application quickly and easily, a central event hub that every module in your application can communicate through so they aren't dependent on one another, and initializers for fine-grained control of how your application boots up.
  • Modules: A means of encapsulating module code and namespacing those modules on the central application object.
  • Views: New view classes to extend that offer native methods for cleaning up, so you don't end up with memory leaks. it also contains rendering boilerplate; for simple views, simply specify the template and model, and it'll handle the rest.
  • Collection/Composite Views: This is where the "composite application library" bit comes into play. these two views allow you to easily create views that can handle the process of rendering all the views in a collection, or even a nested hierarchy of collections and models, with very little effort.
  • Regions and Layouts: A region is a object that can handle all the work of rendering, unrendering, and closing views for a particle place in the DOM. A Layout is simply a normal view that also has regions built into it for handling subviews.
  • AppRouter: A new type of router that can take a controller to handle the workload so that the router can just contain the configuration of the routes.
  • Events: Extended from the Wreqr project, Marionette makes Backbone's events even more powerful for creating large-scale event-based applications.

The backbone service cannot delete any file, which is opened in the backbone service.

It may be a service item of catia.

JS backbone page refresh

Backbone. history. loadUrl ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.