Routing, templating, and database handling

This commit is contained in:
max committed 2022-10-20 11:59:33 -05:00
1 parent 38352de02f
commit e73c006550
10 files changed
+204

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
{{ define "pageTitle" }}Home{{ end }}
{{ define "content" }}
{{ .Test }}
{{ end }}
+11
View File
@@ -0,0 +1,11 @@
{{ define "pageTitle" }}Login{{ end }}
{{ define "content" }}
<form action="/login-handle" method="post">
<label for="username">Username:</label><br>
<input type="text" id="username" name="username" value="John"><br><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Submit">
</form>
{{ end }}
+11
View File
@@ -0,0 +1,11 @@
{{ define "pageTitle" }}Register{{ end }}
{{ define "content" }}
<form action="/register-handle" method="post">
<label for="username">Username:</label><br>
<input type="text" id="username" name="username" value="John"><br><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Submit">
</form>
{{ end }}