Added templating, versioning, middleware, etc

This commit is contained in:
2023-11-24 14:27:23 -05:00
parent cd7003223a
commit 92d8e5fa09
11 changed files with 82 additions and 2 deletions

View File

@ -0,0 +1,7 @@
{{ template "header" . }}
<p>This is the BLT dashboard.</p>
<p>BLT version {{ .app_version }}</p>
{{ template "footer" . }}

View File

@ -0,0 +1,4 @@
{{ define "footer" }}
</body>
</html>
{{ end }}

View File

@ -0,0 +1,11 @@
{{ define "header" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ .title }} | BLT</title>
</head>
<body>
{{ end }}