aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/template/text.tpl.go
blob: 19aa9b2fd8ca3cbddff8bd2245c0f98eb800093b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package template

var Text = fromString("Feed", textTpl, false)

//noinspection HtmlDeprecatedAttribute,HtmlUnknownTarget
const textTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feeditem*/ -}}
{{- with .Item.Link -}}
<{{.}}>

{{ end -}}
{{- with .TextBody -}}
{{.}}
{{ end -}}
{{- with .Item.Enclosures}}
Files:
{{- range . }}
  {{ .URL}} ({{with .Length}}{{. | byteCount}}, {{end}}{{.Type}})
{{- end -}}
{{- end}}
-- 
Feed: {{ with .Feed.Title -}}{{.}}{{- end }}
{{ with .Feed.Link -}}
  <{{.}}>
{{end -}}
Item: {{ with .Item.Title -}}
  {{.}}
{{- end }}
{{ with .Item.Link -}}
  <{{.}}>
{{end -}}
{{ with .Date -}}
  Date: {{.}}
{{ end -}}
{{ with .Creator -}} 
  Author: {{.}}
{{ end -}}
{{ with (join ", " .Categories) -}} 
  Filed under: {{.}}
{{ end -}}
{{ with .FeedLink -}}
  Feed-Link: {{.}}
{{ end -}}`
internal/feed/mail.go?h=v0.5.2&id=864194f470bdd7f74e39d0fe0cdd0ca215693560&follow=1'>Better handling of embedded images with relative urlsRené 'Necoro' Neumann1-13/+27 2020-05-03Slightly enhance loggingRené 'Necoro' Neumann1-4/+4 2020-05-03Explicit version infoRené 'Necoro' Neumann4-12/+15 2020-05-03--version flagRené 'Necoro' Neumann1-0/+6 2020-05-03Rename from 'client' to 'cl'René 'Necoro' Neumann5-26/+26 2020-05-03Use UIDPLUS Imap extensionRené 'Necoro' Neumann4-11/+33 2020-05-03Fix update in IMAPRené 'Necoro' Neumann1-2/+12 2020-05-03Update support for IMAPRené 'Necoro' Neumann5-17/+205 2020-05-03Option "reupload-if-updated"René 'Necoro' Neumann2-0/+4 2020-05-03Fix typoRené 'Necoro' Neumann1-2/+2 2020-05-02Use uuid library directly and encode to base64.René 'Necoro' Neumann6-10/+16 2020-05-02RestructureRené 'Necoro' Neumann8-95/+111 2020-05-02WIP: Message-IdsRené 'Necoro' Neumann8-5/+40 2020-05-02Typo and mention config example in READMERené 'Necoro' Neumann2-1/+3