We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30273b4 commit 05e659aCopy full SHA for 05e659a
2 files changed
handlebar/src/test/resources/mocks/test.json
@@ -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
+}
handlebar/src/test/resources/test.html
+<html>
+<head><title>{{title}}</title></head>
+<body>
+<h1>{{header}}</h1>
+<table>
+ <thead>
+ <tr><td>Name</td><td>Data</td></tr>
+ </thead>
+ {{#rows}}
+ <tr><td>{{name}}</td><td>{{data}}</td></tr>
+ {{/rows}}
+</table>
+</body>
+</html>
0 commit comments