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}}
{{.}}
{{end}}
{{with .Item.Enclosures}}
{{end}}
{{template "bottomLine" (dict "descr" "Date:" "content" .Item.Published)}}
{{template "bottomLine" (dict "descr" "Author:" "content" .Item.Author.Name)}}
{{template "bottomLine" (dict "descr" "Subject:" "content" .Item.Title)}}
{{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Item.Categories))}}
`