Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve templates documentation #56

Closed
pztrn opened this issue Sep 1, 2022 · 3 comments
Closed

Improve templates documentation #56

pztrn opened this issue Sep 1, 2022 · 3 comments

Comments

@pztrn
Copy link

pztrn commented Sep 1, 2022

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
Copy link
Owner

slurdge commented 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
Copy link
Owner

slurdge commented Sep 1, 2022

Related issues, #4 and #15

@slurdge
Copy link
Owner

slurdge commented Oct 11, 2022

fixed

@slurdge slurdge closed this as completed Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants