List JSON of each location separately within a <ul>
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index f7dbf42..bdf5901 100644 (file)
@@ -56,7 +56,7 @@
        <tr>
          <th>Subject</th>
          <td>
-           {{#first location}}
+           {{#first location having="md-subject"}}
              {{#if md-subject}}
                {{md-subject}}
              {{/if}}
        {{/if}}
        <tr>
          <th>Locations</th>
-         <td>{{#json location}}{{/json}}</td>
+         <td>
+           <ul>
+             {{#each location}}
+               <li>{{#json this}}{{/json}}</li>
+             {{/each}}
+           </ul>
+         </td>
        </tr>
       </table>
     </script>