diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-10 15:57:33 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-10 15:57:33 +0200 |
commit | 3fb920705fe13e30c791bad030da17ba84e4ee0a (patch) | |
tree | eef905855d211d3e0f3e55b06ef8e61a650a6f21 | |
parent | 47b2f99d09a0dd30ecceb2190773bb6cc337f6d2 (diff) | |
download | feed2imap-go-3fb920705fe13e30c791bad030da17ba84e4ee0a.tar.gz feed2imap-go-3fb920705fe13e30c791bad030da17ba84e4ee0a.tar.bz2 feed2imap-go-3fb920705fe13e30c791bad030da17ba84e4ee0a.zip |
Renamed feed template to html template
Diffstat (limited to '')
-rw-r--r-- | internal/feed/mail.go | 2 | ||||
-rw-r--r-- | internal/feed/template/html.tpl.go (renamed from internal/feed/template/feed.tpl.go) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go index ecd21ef..b70ce7d 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -49,7 +49,7 @@ func (item *item) toAddress() []*mail.Address { } func (item *item) writeHtml(writer io.Writer) error { - return template.Feed.Execute(writer, item) + return template.Html.Execute(writer, item) } func (item *item) buildHeader() message.Header { diff --git a/internal/feed/template/feed.tpl.go b/internal/feed/template/html.tpl.go index 10f870b..4626188 100644 --- a/internal/feed/template/feed.tpl.go +++ b/internal/feed/template/html.tpl.go @@ -1,6 +1,6 @@ package template -var Feed = fromString("Feed", feedTpl) +var Html = fromString("Feed", feedTpl) //noinspection HtmlDeprecatedAttribute,HtmlUnknownTarget const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feeditem*/ -}} |