<tr>
<th>Subject</th>
<td>
- <ul>
- {{#each location}}
- {{#if md-subject}}
- <li>{{md-subject}}</li>
- {{/if}}
- {{/each}}
- </ul>
+ {{#first location having="md-subject"}}
+ {{#if md-subject}}
+ {{md-subject}}
+ {{/if}}
+ {{/first}}
</td>
</tr>
{{/if}}
<tr>
<th>Locations</th>
- <td>{{#json location}}{{/json}}</td>
+ <td>
+ <ul>
+ {{#each location}}
+ <li>{{json this}}</li>
+ {{/each}}
+ </ul>
+ </td>
</tr>
</table>
</script>