Added templating, versioning, middleware, etc

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent 8bc9849776
commit 4020812549
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 }}