Improve templates documentation
pztrn opened this issue · 3 comments
pztrn commented
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.
slurdge commented
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 commented
fixed