Boo, looks like a ghost didn't like your request!
+
+ But you can try again, type an URL below to shorten it
+
-
-
-
-
Boo, looks like a ghost didn't like your request!
-
- But you can try again, type an URL below to shorten it
-
-
-
-
\ No newline at end of file
+ {{ template "footer" }}
+
+
\ No newline at end of file
diff --git a/templates/404.html b/templates/404.html
index a1b8efd..be7cd44 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -1,293 +1,41 @@
-
- Short: the simple url shortener
-
-
-
-
-
-
404
-
page not found
-
-
-
-
-
-
-
+
+
+
+
404
+
page not found
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Boo, looks like a ghost stole this page!
+
+ But you can type an URL below to shorten it
+
-
-
-
-
Boo, looks like a ghost stole this page!
-
- But you can type an URL below to shorten it
-
-
-
-
\ No newline at end of file
+ {{ template "footer" }}
+
+
\ No newline at end of file
diff --git a/templates/500.html b/templates/500.html
index 615282d..df07b3a 100644
--- a/templates/500.html
+++ b/templates/500.html
@@ -1,287 +1,35 @@
-
- Short: the simple url shortener
-
-
-
-
-
-
500
-
Internal server error
-
-
-
-
-
-
-
+
+
+
+
500
+
Internal server error
-
-
-
X
-
X
-
+
+
+
+
+
+
+
+
+
X
+
X
+
+
+
+
+
+
+
Boo, the ghost is broken :(
+
+ His last words where: {{ . }}
-
-
-
-
Boo, the ghost is broken :(
-
- His last words where: {{ . }}
-
-
-
\ No newline at end of file
+ {{ template "footer" }}
+
+
\ No newline at end of file
diff --git a/templates/footer.html b/templates/footer.html
new file mode 100644
index 0000000..9e1b755
--- /dev/null
+++ b/templates/footer.html
@@ -0,0 +1,5 @@
+{{ define "footer" }}
+
+{{ end }}
\ No newline at end of file
diff --git a/templates/header.html b/templates/header.html
new file mode 100644
index 0000000..6b2bb2a
--- /dev/null
+++ b/templates/header.html
@@ -0,0 +1,282 @@
+{{ define "header" }}
+
+ Short: the simple url shortener
+
+
+{{ end }}
diff --git a/templates/index.html b/templates/index.html
index 866a0bb..b4e2f7b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,87 +1,18 @@
-
- Short: the simple url shortener
-
-
-
-
-
Welcome to Short, the simple URL shortener,
-
- Type an URL below to shorten it
-
-
-
+ {{ template "slimheader" }}
+
+
+
Welcome to Short, the simple URL shortener,
+
+ Type an URL below to shorten it
+
+
+ {{ template "footer" }}
+
\ No newline at end of file
diff --git a/templates/ok.html b/templates/ok.html
index 15ba75b..ef328cc 100644
--- a/templates/ok.html
+++ b/templates/ok.html
@@ -1,33 +1,10 @@
-
- Short: the simple url shortner
-
-
-
-
-
{{ . }}
-
-
+ {{ template "slimheader" }}
+
+
+
{{ . }}
+
+ {{ template "footer" }}
+
\ No newline at end of file
diff --git a/templates/returnPage.html b/templates/returnPage.html
index 748825a..f1bcfc0 100644
--- a/templates/returnPage.html
+++ b/templates/returnPage.html
@@ -1,33 +1,10 @@
-
- Short: the simple url shortner
-
-
-
-
+ {{ template "footer" }}
+
\ No newline at end of file
diff --git a/templates/slimheader.html b/templates/slimheader.html
new file mode 100644
index 0000000..21e877e
--- /dev/null
+++ b/templates/slimheader.html
@@ -0,0 +1,72 @@
+{{ define "slimheader" }}
+
+ Short: the simple url shortener
+
+
+{{ end }}
\ No newline at end of file