diff options
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/Handlebars/basic.handlebars | 6 | ||||
| -rw-r--r-- | samples/Handlebars/each.hbs | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/samples/Handlebars/basic.handlebars b/samples/Handlebars/basic.handlebars new file mode 100644 index 0000000..51364f8 --- /dev/null +++ b/samples/Handlebars/basic.handlebars @@ -0,0 +1,6 @@ +<div class="entry"> + <h1>{{title}}</h1> + <div class="body"> + {{body}} + </div> +</div> diff --git a/samples/Handlebars/each.hbs b/samples/Handlebars/each.hbs new file mode 100644 index 0000000..b75afa6 --- /dev/null +++ b/samples/Handlebars/each.hbs @@ -0,0 +1,11 @@ +<div class="post"> + <h1>By {{fullName author}}</h1> + <div class="body">{{body}}</div> + + <h1>Comments</h1> + + {{#each comments}} + <h2>By {{fullName author}}</h2> + <div class="body">{{body}}</div> + {{/each}} +</div> |
