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