Guard Subject code with new #if-any instead of just #if location.
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 0d364b6..ca9eb7d 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 location}}
+       {{#if-any location having="md-subject"}}
        <tr>
          <th>Subject</th>
          <td>
            {{/first}}
          </td>
        </tr>
-       {{/if}}
+       {{/if-any}}
        <tr>
          <th>Locations</th>
-         <td>{{#json location}}{{/json}}</td>
+         <td>
+           <ul>
+             {{#each location}}
+               <li>{{attr 'name'}}</li>
+             {{/each}}
+           </ul>
+         </td>
        </tr>
       </table>
     </script>