Added templating, versioning, middleware, etc
This commit is contained in:
7
templates/index/dashboard.tmpl
Normal file
7
templates/index/dashboard.tmpl
Normal file
@ -0,0 +1,7 @@
|
||||
{{ template "header" . }}
|
||||
|
||||
<p>This is the BLT dashboard.</p>
|
||||
|
||||
<p>BLT version {{ .app_version }}</p>
|
||||
|
||||
{{ template "footer" . }}
|
4
templates/layout/footer.tmpl
Normal file
4
templates/layout/footer.tmpl
Normal file
@ -0,0 +1,4 @@
|
||||
{{ define "footer" }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
11
templates/layout/header.tmpl
Normal file
11
templates/layout/header.tmpl
Normal 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 }}
|
Reference in New Issue
Block a user