summaryrefslogtreecommitdiff
path: root/templates/mytemplates.go
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2022-10-17 23:58:36 -0600
committernavanchauhan <navanchauhan@gmail.com>2022-10-17 23:58:36 -0600
commit2003c8064e7e8209d765eaac4003c47a122c057f (patch)
tree8564ec4c706f9870708737b3efbd4de127756eea /templates/mytemplates.go
parent01076278493fd722fc658e7d51b49267c9c37dff (diff)
embed templates
Diffstat (limited to 'templates/mytemplates.go')
-rw-r--r--templates/mytemplates.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/mytemplates.go b/templates/mytemplates.go
new file mode 100644
index 0000000..82dc999
--- /dev/null
+++ b/templates/mytemplates.go
@@ -0,0 +1,8 @@
+package mytemplates
+
+import "embed"
+
+// myTemplates represent the templates used by the application.
+//
+//go:embed *.html *.gtpl components/*.html
+var Templates embed.FS