aboutsummaryrefslogtreecommitdiff
path: root/samples/Handlebars/each.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/Handlebars/each.hbs')
-rw-r--r--samples/Handlebars/each.hbs11
1 files changed, 11 insertions, 0 deletions
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>