projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18d8af
)
Don't accept an empty subject from the first location if a subsequent
author
Mike Taylor
<mike@indexdata.com>
Thu, 28 Nov 2013 13:35:50 +0000
(13:35 +0000)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/examples/htdocs/mike.html
b/examples/htdocs/mike.html
index
f7dbf42
..
0d364b6
100644
(file)
--- a/
examples/htdocs/mike.html
+++ b/
examples/htdocs/mike.html
@@
-56,7
+56,7
@@
<tr>
<th>Subject</th>
<td>
- {{#first location}}
+ {{#first location having="md-subject"}}
{{#if md-subject}}
{{md-subject}}
{{/if}}