Remove debugging output from #first Handlebars helper.
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 0614528..5d45a27 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}}
        <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}}
        <tr>
          <th>Locations</th>
-         <td>{{#json location}}{{/json}}</td>
+         <td>
+           <ul>
+             {{#each location}}
+               <li>{{attr 'name'}}</li>
+             {{/each}}
+           </ul>
+         </td>
        </tr>
       </table>
     </script>