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}}
Feed {{with .Feed.Link}}{{end}} {{or .Feed.Title .Feed.Link "Unnammed feed"}} {{if .Feed.Link}}{{end}}
Item {{with .Item.Link}}{{end}} {{or .Item.Title .Item.Link}} {{if .Item.Link}}{{end}}
{{with .Item.Content}}
{{.}} {{end}} {{with .Item.Enclosures}}
{{range .}} {{end}}
Files:
    {{.URL | lastUrlPart}} ({{.Length | byteCount}}, {{.Type}})
{{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))}}
`