diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-20 20:46:17 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-21 10:23:00 +0100 |
commit | 1773d71d5b40f5a6a14edca417d2818607a499f1 (patch) | |
tree | 0b63843378c705b8c9f4b8f6d9f18db58315233d /docs/data | |
parent | 8a58ebb311fd079f65068e7e37725e4d43f17ab5 (diff) |
tpl: Add a warnf template func
Fixes #6628
Diffstat (limited to 'docs/data')
-rw-r--r-- | docs/data/docs.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json index a4c79ab16..7cdf8a405 100644 --- a/docs/data/docs.json +++ b/docs/data/docs.json @@ -3053,6 +3053,22 @@ "works!\n" ] ] + }, + "Warnf": { + "Description": "Warnf formats according to a format specifier and logs a WARNING.\nIt returns an empty string.", + "Args": [ + "format", + "a" + ], + "Aliases": [ + "warnf" + ], + "Examples": [ + [ + "{{ warnf \"%s.\" \"warning\" }}", + "" + ] + ] } }, "hugo": { |