aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/template/template.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/feed/template/template.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/feed/template/template.go b/internal/feed/template/template.go
index d8eb850..09dacf1 100644
--- a/internal/feed/template/template.go
+++ b/internal/feed/template/template.go
@@ -15,6 +15,15 @@ type Template interface {
Execute(wr io.Writer, data interface{}) error
}
+//go:embed html.tpl
+var htmlTpl string
+
+//go:embed text.tpl
+var textTpl string
+
+var Html = fromString("Feed", htmlTpl, true)
+var Text = fromString("Feed", textTpl, false)
+
func must(t Template, err error) Template {
if err != nil {
panic(err)