concept backbone in category jQuery

appears as: Backbone
jQuery UI in Action

This is an excerpt from Manning's book jQuery UI in Action.

This approach also works well when you dynamically insert HTML chunks into an existing document. The technique is common with MVC frameworks like Backbone, so we’ll have a more thorough discussion of that in appendix C (which is specifically about using jQuery UI with Backbone).

If you’re not familiar with Backbone, don’t worry too much about the specific syntax used here. Backbone works by separating the model data (in this case, Grocery and GroceryList) from the view logic (in this case, GroceryView). But because we’re concerned about jQuery UI integration, the main thing to focus on is the render() method. Here, render() takes the data in the View’s model (GroceryList) and uses a template to inject the data into the <ul id="grocery-list"></ul>.