package template
var Feed = fromString("Feed", feedTpl)
//noinspection HtmlDeprecatedAttribute,HtmlUnknownTarget
const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feeditem*/ -}}
{{define "bottomLine"}}
{{if .content}}
{{.descr}}
|
{{.content}}
|
{{end}}
{{end}}
{{with .Item.Content}}
{{html .}}
{{else}}
{{with .Item.Description}}
{{html .}}
{{end}}
{{end}}
{{with .Item.Enclosures}}
{{end}}
{{template "bottomLine" (dict "descr" "Date:" "content" .Item.Published)}}
{{template "bottomLine" (dict "descr" "Author:" "content" .Creator)}}
{{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Item.Categories))}}
{{with .Feed.FeedLink}}
{{template "bottomLine" (dict "descr" "Feed-Link:" "content" (print "" . "" | html))}}
{{end}}
`