initial message board works

This commit is contained in:
Chuck Dries
2021-06-23 13:22:33 -07:00
commit fbce70df08
6 changed files with 574 additions and 0 deletions

14
views/home.handlebars Normal file
View File

@@ -0,0 +1,14 @@
<h1>Hello world: homepage</h1>
<ul>
<li>this is always there</li>
{{#each messages}}
<li style="font-style:italic">{{this}}</li>
{{/each}}
</ul>
<form action="/message" method="post">
<label for="messageText">message:</label>
<input type="text" id="messageText" name="messageText" />
<button type="submit">send</button>
</form>

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example App</title>
</head>
<body>
{{{body}}}
</body>
</html>