Backbone Tutorials

View Rendering

Every View manages the rendering and consumer interplay inside its personal DOM component. When you’re strict about not permitting views to achieve exterior of themselves, it helps maintain your interface versatile — permitting views to be rendered in isolation in anyplace where they is perhaps wanted.

Backbone stays unopinionated concerning the course of used to render View objects and their subviews into UI: you outline how your models get translated into HTML (or SVG, or Canvas, or one thing much more unique). It might be as prosaic as a easy Underscore template, or as fancy because the React digital DOM. Some primary approaches to rendering views might be discovered within the Backbone primer.