[html] add handlebars

This commit is contained in:
Martin Aeschlimann
2016-09-14 09:49:40 +02:00
parent 1f6815a880
commit daad014a6f
9 changed files with 3196 additions and 457 deletions

View File

@@ -0,0 +1,24 @@
<h1>Comments</h1>
<div id="comments">
{{#each comments}}
<h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2>
<div>{{body}}</div>
{{/each}}
<p>{{./name}} or {{this/name}} or {{this.name}}</p>
</div>
<div class="entry">
{{!-- only output author name if an author exists --}}
{{#if author}}
<h1>{{firstName}} {{lastName}}</h1>
{{/if}}
</div>
<div class="post">
{{> userMessage tagName="h1" }}
<h1>Comments</h1>
{{#each comments}}
{{> userMessage tagName="h2" }}
{{/each}}
</div>

File diff suppressed because it is too large Load Diff