Skip to content

Commit 9d9ef44

Browse files
committed
Pull in some new examples from mustache repo.
1 parent 93b1f2a commit 9d9ef44

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

examples/crazy_recursive.mustache

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<body>
3+
<ul>
4+
{{#top_nodes}}
5+
{{> node}}
6+
{{/top_nodes}}
7+
</ul>
8+
</body>
9+
</html>

examples/node.mustache

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<li>
2+
{{contents}}
3+
<ul>
4+
{{#children}}
5+
{{> node}}
6+
{{/children}}
7+
</ul>
8+
</li>

examples/recursive.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
It works!
2+
{{#show}}
3+
{{>recursive}}
4+
{{/show}}

0 commit comments

Comments
 (0)