mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[GH-ISSUE #56] Improve templates documentation #20
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@slurdge commented on GitHub (Sep 1, 2022):
Related issues, #4 and #15
@slurdge commented on GitHub (Oct 11, 2022):
fixed