diff -r b0d55f7fddeb -r abfa3aa97b51 templates/README.md --- a/templates/README.md Sun May 14 16:27:33 2017 +0200 +++ b/templates/README.md Sun May 21 12:31:06 2017 +0200 @@ -31,6 +31,9 @@ Currently, if a template is missing, madonctl will fall back to the _plain_ output format. (In the future it might just fail with an error message.) +You can set up madonctl so that a theme is used by default. See the +[configuration](../configuration.md) page for details. + ## Templates Here's an example using a template with ANSI color escape codes (for UNIX/Linux): @@ -39,19 +42,20 @@ ### Template development -Here's a list of available commands (please check the Go template documentation for the built-in functions): +Here's a list of available commands (please check the Go template documentation +for the built-in functions): Function | Description -------- | ----------- -fromunix UNIXTIMESTAMP | converts from UNIX timestampto date -tolocal TEXTRFC3339DATE | converts a RFC3339 date string to a local time -fromhtml HTMLTEXT | converts HTML to plain text -wrap TEXT | rewrap text, with indent and max width -trim TEXT | trims text whitespace -color COLORSPEC | sends an ANSI color code sequence +`fromunix UNIXTIMESTAMP` | converts from UNIX timestampto date +`tolocal TEXTRFC3339DATE` | converts a RFC3339 date string to a local time +`fromhtml HTMLTEXT` | converts HTML to plain text +`wrap TEXT` | rewrap text, with indent and max width +`trim TEXT` | trims text whitespace +`color COLORSPEC` | sends an ANSI color code sequence -*COLORSPEC* is a string with the following format: -`[FGCOLOR][,BGCOLOR[,STYLE]]` or `reset`. +*COLORSPEC* is a string with the following format: `[FGCOLOR][,BGCOLOR[,STYLE]]` +or `reset`. Examples: