From 90fa2795ad177b9add2fe46382576993e96ece4b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 16 Sep 2023 20:43:19 -0600 Subject: Initial commit Gemini repository browsing --- templates.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 templates.go (limited to 'templates.go') diff --git a/templates.go b/templates.go new file mode 100644 index 0000000..ddce7ea --- /dev/null +++ b/templates.go @@ -0,0 +1,10 @@ +package syw + +import ( + "embed" + "text/template" +) + +//go:embed templates/*.gmi +var geminiTemplateFS embed.FS +var geminiTemplate = template.Must(template.ParseFS(geminiTemplateFS, "templates/*.gmi")) -- cgit v1.2.3