Unpack serve.c into multiple files

This commit is contained in:
2024-10-06 20:14:44 +02:00
parent e8c8acf8c4
commit 0da93dd867
24 changed files with 2380 additions and 2284 deletions
+14
View File
@@ -28,6 +28,20 @@
<article>
<h1>{{title}} (by {{author}})</h1>
<p>{{content}}</p>
<form action="/posts/{{id}}/comments" method="POST">
<textarea name="content" placeholder="comment"></textarea>
<input type="submit" value="comment" />
</form>
<table>
{% for comment in comments %}
<tr>
<td>{{comment.author}}:</td>
<td>{{comment.content}}</td>
</tr>
{% end %}
</table>
</article>
</main>
</body>