go-webserver-template/templates/index.html
Nathan Woodburn 75c2becc40
Some checks failed
Build Docker / BuildSite (push) Failing after 25s
feat: Add env to go template
2024-06-19 22:41:15 +10:00

24 lines
643 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Go HTML Template</title>
<link rel="stylesheet" href="/assets/css/index.css">
<link rel="icon" href="/assets/img/favicon.png">
</head>
<body>
<h1>Hello, World!</h1>
{{if .envMessage }}
<p>{{.envMessage}}</p>
{{end}}
{{if .message}}
<p>{{.message}}</p>
{{end}}
<form action="/" method="post">
<input type="text" name="message" placeholder="Enter your message">
<button type="submit">Submit</button>
</form>
</body>
</html>