aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-12-10 07:06:59 -0800
committerJoshua Peek <josh@joshpeek.com>2012-12-10 07:06:59 -0800
commit281cc985bfa9864f2cc06923fde2bbadf04f8302 (patch)
tree44fa2837b7ee27fd72441a993a5f09edcd15d892 /samples
parentdcc2be078110d2d2a8919fad693557e9f80233c5 (diff)
parent0e20f6d454c7151a06122c7d64124a5e424f40e0 (diff)
Merge pull request #288 from wagenet/handlebars
Add Handlebars
Diffstat (limited to 'samples')
-rw-r--r--samples/Handlebars/basic.handlebars6
-rw-r--r--samples/Handlebars/each.hbs11
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>