Provide explicit leading '@' for {{attr '@name'}}
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 0614528..a806625 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 location having="md-subject"}}
+             {{#if md-subject}}
+               {{md-subject}}
+             {{/if}}
+           {{/first}}
+         </td>
+       </tr>
+       {{/if-any}}
+       <tr>
+         <th>Locations</th>
+         <td>
            <ul>
              {{#each location}}
-               {{#if md-subject}}
-                 <li>{{md-subject}}</li>
+               {{#if '@name'}}
+                 <li>{{attr '@name'}}</li>
                {{/if}}
              {{/each}}
            </ul>
          </td>
        </tr>
-       {{/if}}
-       <tr>
-         <th>Locations</th>
-         <td>{{#json location}}{{/json}}</td>
-       </tr>
       </table>
     </script>
     <div id="mkwsMOTD"></div>