From: Mike Taylor Date: Thu, 28 Nov 2013 13:35:50 +0000 (+0000) Subject: Don't accept an empty subject from the first location if a subsequent X-Git-Tag: 0.9.1~148^2~30 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=1b454be621761533ae751a9c502c5e758e90db5a;hp=a18d8af3913ec2cbb2d32745ebd3c105aa931039;p=mkws-moved-to-github.git Don't accept an empty subject from the first location if a subsequent 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"}} --- diff --git a/examples/htdocs/mike.html b/examples/htdocs/mike.html index f7dbf42..0d364b6 100644 --- a/examples/htdocs/mike.html +++ b/examples/htdocs/mike.html @@ -56,7 +56,7 @@ Subject - {{#first location}} + {{#first location having="md-subject"}} {{#if md-subject}} {{md-subject}} {{/if}}