Provide explicit leading '@' for {{attr '@name'}}
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 5d45a27..a806625 100644 (file)
@@ -52,7 +52,7 @@
          <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>
            <ul>
              {{#each location}}
-               <li>{{attr 'name'}}</li>
+               {{#if '@name'}}
+                 <li>{{attr '@name'}}</li>
+               {{/if}}
              {{/each}}
            </ul>
          </td>