From b19321bab542de35564127dc77781af44252bcb9 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 2 Jan 2025 16:23:43 -0800 Subject: create a base template :) and use it for a new service --- template/templates/404.html | 7 +++++++ template/templates/base.html | 16 ++++++++++++++++ template/templates/base_empty.html | 3 +++ template/templates/hello.html | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 template/templates/404.html create mode 100644 template/templates/base.html create mode 100644 template/templates/base_empty.html create mode 100644 template/templates/hello.html (limited to 'template/templates') diff --git a/template/templates/404.html b/template/templates/404.html new file mode 100644 index 0000000..5210bfb --- /dev/null +++ b/template/templates/404.html @@ -0,0 +1,7 @@ +{{ define "content" }} +

page not found

+

but hey, at least you found our witty 404 page. that's something, right?

+ +

go back home

+ +{{ end }} diff --git a/template/templates/base.html b/template/templates/base.html new file mode 100644 index 0000000..30a9c53 --- /dev/null +++ b/template/templates/base.html @@ -0,0 +1,16 @@ +{{ define "base" }} + + + + {{ service_title }} + + + + + +
+ {{ template "content" . }} +
+ + +{{ end }} diff --git a/template/templates/base_empty.html b/template/templates/base_empty.html new file mode 100644 index 0000000..6191ab9 --- /dev/null +++ b/template/templates/base_empty.html @@ -0,0 +1,3 @@ +{{ define "base" }} + {{ template "content" . }} +{{ end }} \ No newline at end of file diff --git a/template/templates/hello.html b/template/templates/hello.html new file mode 100644 index 0000000..d2311f5 --- /dev/null +++ b/template/templates/hello.html @@ -0,0 +1,3 @@ +{{ define "content" }} +hello from {{ .Service }}! +{{ end }} -- cgit v1.2.3-70-g09d2