From e918ba6850dbddb69a69d524fcacafc0985c19a2 Mon Sep 17 00:00:00 2001 From: joerdav Date: Tue, 4 Jul 2023 09:49:44 +0100 Subject: [PATCH 1/3] feat: templ templates --- content/posts/goodbye-world.md | 2 +- go.mod | 2 + go.sum | 2 + partials/goodbyeworld.html | 1 - partials/helloworld.html | 10 -- partials/templates.templ | 18 +++ partials/templates_templ.go | 213 +++++++++++++++++++++++++++++++++ server.go | 73 ++++------- 8 files changed, 261 insertions(+), 60 deletions(-) create mode 100644 go.sum delete mode 100644 partials/goodbyeworld.html delete mode 100644 partials/helloworld.html create mode 100644 partials/templates.templ create mode 100644 partials/templates_templ.go diff --git a/content/posts/goodbye-world.md b/content/posts/goodbye-world.md index 8308ce9..020e3f6 100644 --- a/content/posts/goodbye-world.md +++ b/content/posts/goodbye-world.md @@ -10,7 +10,7 @@ Every time `Click Me!` is clicked, a request is sent to fetch static template `/ {{< html.inline >}}