goeland icon indicating copy to clipboard operation
goeland copied to clipboard

Improve templates documentation

Open pztrn opened this issue 2 years ago • 2 comments

Trying to create custom template and found no documentation about placeholders for templater as well as no ability to simply get a link for entry.

pztrn avatar Sep 01 '22 18:09 pztrn

Hi @pztrn , you are right I did not create yet the doc for templater. You can look at two things, the first is: https://github.com/slurdge/goeland/blob/master/cmd/asset/email.default.html

Which will give you most of the template args. Most important is {{.EntryContent}} which will output the entry.

Second you can look at https://github.com/slurdge/goeland/blob/master/cmd/run.go#L125 where you can see how the args are used. I'll try to fix up some doc.

slurdge avatar Sep 01 '22 19:09 slurdge

Related issues, #4 and #15

slurdge avatar Sep 01 '22 19:09 slurdge

fixed

slurdge avatar Oct 11 '22 12:10 slurdge