summaryrefslogtreecommitdiff
path: root/templates.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-16 20:43:19 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-16 20:43:19 -0600
commit90fa2795ad177b9add2fe46382576993e96ece4b (patch)
tree0e2847f8694fa66a914680329c4515101b5a45ab /templates.go
Initial commit
Gemini repository browsing
Diffstat (limited to 'templates.go')
-rw-r--r--templates.go10
1 files changed, 10 insertions, 0 deletions
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"))