[GH-ISSUE #56] Improve templates documentation #20

Closed
opened 2026-09-29 12:58:40 +00:00 by slurdge · 3 comments
Owner

Originally created by @pztrn on GitHub (Sep 1, 2022).
Original GitHub issue: https://github.com/slurdge/goeland/issues/56

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.

Originally created by @pztrn on GitHub (Sep 1, 2022). Original GitHub issue: https://github.com/slurdge/goeland/issues/56 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.
Author
Owner

@slurdge commented on GitHub (Sep 1, 2022):

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.

<!-- gh-comment-id:1234679947 --> @slurdge commented on GitHub (Sep 1, 2022): 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.
Author
Owner

@slurdge commented on GitHub (Sep 1, 2022):

Related issues, #4 and #15

<!-- gh-comment-id:1234680839 --> @slurdge commented on GitHub (Sep 1, 2022): Related issues, #4 and #15
Author
Owner

@slurdge commented on GitHub (Oct 11, 2022):

fixed

<!-- gh-comment-id:1274603124 --> @slurdge commented on GitHub (Oct 11, 2022): fixed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: slurdge/goeland#20
No description provided.