initial message board works
This commit is contained in:
14
views/home.handlebars
Normal file
14
views/home.handlebars
Normal 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>
|
12
views/layouts/main.handlebars
Normal file
12
views/layouts/main.handlebars
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example App</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{{{body}}}
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user