projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Guard location-name rendering with #if '@name'.
[mkws-moved-to-github.git]
/
examples
/
htdocs
/
mike.html
diff --git
a/examples/htdocs/mike.html
b/examples/htdocs/mike.html
index
02bf56d
..
6dcbe46
100644
(file)
--- a/
examples/htdocs/mike.html
+++ b/
examples/htdocs/mike.html
@@
-34,25
+34,47
@@
{{/if}}
</td>
</tr>
{{/if}}
</td>
</tr>
+ {{#if md-date}}
<tr>
<th>Date</th>
<td>{{md-date}}</td>
</tr>
<tr>
<th>Date</th>
<td>{{md-date}}</td>
</tr>
+ {{/if}}
+ {{#if md-author}}
<tr>
<th>Author</th>
<td>{{md-author}}</td>
</tr>
<tr>
<th>Author</th>
<td>{{md-author}}</td>
</tr>
+ {{/if}}
+ {{#if md-electronic-url}}
<tr>
<th>URL</th>
<tr>
<th>URL</th>
- <td>{{md-electronic-url}}</td>
+ <td>{{link md-electronic-url}}</td>
</tr>
</tr>
+ {{/if}}
+ {{#if-any location having="md-subject"}}
<tr>
<th>Subject</th>
<tr>
<th>Subject</th>
- <td>{{md-subject}}</td>
+ <td>
+ {{#first location having="md-subject"}}
+ {{#if md-subject}}
+ {{md-subject}}
+ {{/if}}
+ {{/first}}
+ </td>
</tr>
</tr>
+ {{/if-any}}
<tr>
<th>Locations</th>
<tr>
<th>Locations</th>
- <td>{{location}}</td>
+ <td>
+ <ul>
+ {{#each location}}
+ {{#if '@name'}}
+ <li>{{attr 'name'}}</li>
+ {{/if}}
+ {{/each}}
+ </ul>
+ </td>
</tr>
</table>
</script>
</tr>
</table>
</script>