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 -}}`
d?id=6b15776b292ce9142d9a70e41e483551e0a411c4&follow=1'>Remove outdated radicaleRené 'Necoro' Neumann5-188/+0 2016-03-25feed2imap: ruby-2.1René 'Necoro' Neumann1-1/+1 2016-03-25i3 with pango but w/o cairoRené 'Necoro' Neumann4-0/+341 2016-02-21Use virtual/udevRené 'Necoro' Neumann1-1/+1 2016-01-09passRené 'Necoro' Neumann2-0/+84