If there is a Backbone Model called Person, which has properties firstName, lastName. Usually, access to it is like person.get('firstName') and person.get('lastName').
How do I do a similar thing in a Handlebar template, where a person has been exposed to the context.
When you render the Handlebars template, you need to pass in the attributes of the model. The recommended way to do this is to call
Model.toJSON, which returns a copy of the the model’s internalattributeshash.In the template you can access the context by the property name.