From 2003c8064e7e8209d765eaac4003c47a122c057f Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 17 Oct 2022 23:58:36 -0600 Subject: embed templates --- templates/mytemplates.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/mytemplates.go (limited to 'templates') 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 -- cgit v1.2.3