Just list locations with a <br/> after each.
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 6e15b2e..b19dc47 100644 (file)
        {{#if md-electronic-url}}
        <tr>
          <th>URL</th>
-         <td>{{#link md-electronic-url}}{{/link}}</td>
+         <td>{{link md-electronic-url}}</td>
        </tr>
        {{/if}}
+       {{#if-any location having="md-subject"}}
        <tr>
          <th>Subject</th>
-         <td>{{md-subject}}</td>
+         <td>
+           {{#first location having="md-subject"}}
+             {{#if md-subject}}
+               {{md-subject}}
+             {{/if}}
+           {{/first}}
+         </td>
        </tr>
+       {{/if-any}}
        <tr>
          <th>Locations</th>
-         <td>{{location}}</td>
+         <td>
+           {{#each location}}
+             {{#if '@name'}}
+               {{attr '@name'}}<br/>
+             {{/if}}
+           {{/each}}
+         </td>
        </tr>
       </table>
     </script>