From f8a89ce8d9a3d5882a484fcaec810dc90f4a5e5d Mon Sep 17 00:00:00 2001 From: RenĂ© 'Necoro' Neumann Date: Thu, 23 Apr 2020 20:51:11 +0200 Subject: Move template to subfolder of feed --- internal/template/feed.tpl.go | 76 ------------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 internal/template/feed.tpl.go (limited to 'internal/template/feed.tpl.go') diff --git a/internal/template/feed.tpl.go b/internal/template/feed.tpl.go deleted file mode 100644 index 3f6470f..0000000 --- a/internal/template/feed.tpl.go +++ /dev/null @@ -1,76 +0,0 @@ -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.Description}} -
- {{html .}} -{{end}} -{{with .Item.Content}} -
- {{html .}} -{{end}} -{{with .Item.Enclosures}} - - - - -
- - - {{range .}} - - - - {{end}} -
Files:
-     - {{.URL | lastUrlPart}} ({{.Length | byteCount}}, {{.Type}}) -
-
-{{end}} -
- - {{template "bottomLine" (dict "descr" "Date:" "content" .Item.Published)}} - {{with .Item.Author}}{{template "bottomLine" (dict "descr" "Author:" "content" .Name)}}{{end}} - {{template "bottomLine" (dict "descr" "Subject:" "content" .Item.Title)}} - {{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Item.Categories))}} -
` -- cgit v1.2.3-70-g09d2