Location names now listed with #commaList instead of #each.
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 6d4a721..ca2da46 100644 (file)
        {{#if md-electronic-url}}
        <tr>
          <th>URL</th>
-         <td>{{#link md-electronic-url}}{{/link}}</td>
+         <td>
+           {{#each md-electronic-url}}
+             <a href="{{this}}">{{this}}</a><br/>
+           {{/each}}
+         </td>
        </tr>
        {{/if}}
-       {{#if location}}
+       {{#if-any location having="md-subject"}}
        <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}}
+       {{/if-any}}
        <tr>
          <th>Locations</th>
-         <td>{{location}}</td>
+         <td>
+           {{#commaList location}}
+             {{attr '@name'}}{{/commaList}}
+         </td>
        </tr>
       </table>
     </script>