The Backbone.JS View Template() method creates reusable copies of markup. It also provides access to the instance data, while rendering the view.
Syntax:
View.Template (data)
Parameters:
data: This parameter is used to specify the data to be accessed while rendering.
Example:
Example
Output:
HELLO WORLD!!
Explanation:
In the above example the Template() method is used to get access to the instance data.