Access Nested Backbone Model Attributes from Mustache Template
I have one Backbone model which has an attribute that is a reference to another Backbone model. For example, a Person has a reference to an Address object. Person FirstName LastName Address Street City State Zip These are classes that extend the Backbone model. So, then if I construct an object like the following... var address = new Address({ Street: "123 Main", City: "Austin" }); var person = new Person({ FirstName: "John", Address: address }); I cannot seem to figure out how to access it in my Mustache template. Hi {{FirstName}}, you live in {{Address.City}}. Obviously does not work. When I