~kota/gemgen#13: 
templating

I'd like to have an option to use an output (gemtext) template. This would allow easily adding headers/footers, and inserting some metadata such as last edit time, file size/word count, and maybe even a list of backlinks (based on links in your other input files).

Go has a powerful text/templating library I can use. It's just a matter for adding the option, populating the variables, and writing documentation.

Status
REPORTED
Submitter
~kota
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~kota 2 years ago

Added a basic template implementation on the templates branch. Currently, only a {{.Content}} action is implemented.

~kota 2 years ago

Added {{.Filename}} {{.Title}} and {{.LastEdit}}, but I still might add actions for backlinks, file size/word count, and yaml metadata processing in the future. (Especially if someone actually needs these features).

Register here or Log in to comment, or comment via email.