Skip to content

Commit 05e659a

Browse files
committed
example of how to use handlebar
1 parent 30273b4 commit 05e659a

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"title": "This is the title",
3+
"header": "The table header",
4+
"rows": [
5+
{
6+
"name": "Name 1",
7+
"data": "Data 1"
8+
},
9+
{
10+
"name": "Name 2",
11+
"data": "Data 2"
12+
}
13+
]
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html>
2+
<head><title>{{title}}</title></head>
3+
<body>
4+
<h1>{{header}}</h1>
5+
<table>
6+
<thead>
7+
<tr><td>Name</td><td>Data</td></tr>
8+
</thead>
9+
{{#rows}}
10+
<tr><td>{{name}}</td><td>{{data}}</td></tr>
11+
{{/rows}}
12+
</table>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)