aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
-rw-r--r--templates/home.html10
2 files changed, 10 insertions, 8 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..538d7db
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,8 @@
+{{ define "HEADER" }}<html>
+<head>
+<title>bombom</title>
+<link rel="stylesheet" type="text/css" href="/static/default.css"></link>
+</head>
+<body>{{ end }}
+{{ define "FOOTER" }}</body>
+</html>{{ end }}
diff --git a/templates/home.html b/templates/home.html
index 0cc420e..1298241 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -1,9 +1,3 @@
-<html>
-<head>
-<title>bombom</title>
-<link rel="stylesheet" type="text/css" href="/static/default.css"></link>
-</head>
-<body>
+{{ template "HEADER" }}
<h1>Home Page</h1>
-</body>
-</html>
+{{ template "FOOTER" }}