Don't accept an empty subject from the first location if a subsequent
authorMike Taylor <mike@indexdata.com>
Thu, 28 Nov 2013 13:35:50 +0000 (13:35 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 28 Nov 2013 13:35:50 +0000 (13:35 +0000)
once has a non-empty subject -- thanks to the wonder of the new
"having" argument to the #first Handlebars helper:
{{#first location having="md-subject"}}

examples/htdocs/mike.html

index f7dbf42..0d364b6 100644 (file)
@@ -56,7 +56,7 @@
        <tr>
          <th>Subject</th>
          <td>
-           {{#first location}}
+           {{#first location having="md-subject"}}
              {{#if md-subject}}
                {{md-subject}}
              {{/if}}