I use the Handlebar/Mustache template to render the following view model in my ASP.NET MVC app. I am displaying the following fields in a table. The ContactList is a list of Contacts (with FirstName, LastName, Address etc.).
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public List<Contact> ContactList { get; set; }
<table
<tbody>
<tr>
<td>First Name</td>
<td>{{this.FirstName}}</td>
</tr>
<tr>
<td>Last Name</td>
<td>{{this.LastName}}</td>
</tr>
<tr>
<td>Address</td>
<td>{{this.Address}}</td>
</tr>
<tr>
<td>Contact List</td>
**<td>//how to process the ContactList?//</td>**
</tr>
</tbody>
</table>
I would like to know how to loop through this list and display it as a row in the same table?