-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.html
42 lines (39 loc) · 831 Bytes
/
app.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<head>
<title>app</title>
</head>
<body>
<div>
<!-- Players template to display all players in database -->
{{> players}}
</div>
<div>
<!-- User input form to add players -->
{{> form}}
</div>
<div>
<!-- Real-time metrics to confirm oplog tailing -->
{{> serverFacts}}
</div>
</body>
<template name="players">
<h1>List of players</h1>
<ul>
{{#each scorers}}
<li>
<div>
Name: {{ this.name }}
</div>
<div>
Score: {{ this.score }}
</div>
</li>
{{/each}}
</ul>
</template>
<template name ="form">
<form id="myform">
Name: <input type="text" name="name"/>
Score: <input type="number" name="score"/>
<input type="submit" id="submit"/>
</form>
</template>