Creating View with Template in Backbone.js
The render function is invoked whenever there is a need to render the view on the screen. We will usually use a templating mechanism for rendering the view. We can use Underscore.js templating mechanism. Backbone.js requires Underscore.js for its operation so the library is already available.
The render function is invoked whenever there is a need to render the view on the screen. We will usually use a templating mechanism for rendering the view. We can use Underscore.js templating mechanism. Backbone.js requires Underscore.js for its operation so the library is already available.