tpl: Add a warnf template func

Fixes #6628
This commit is contained in:
Bjørn Erik Pedersen
2019-12-20 20:46:17 +01:00
parent 8a58ebb311
commit 1773d71d5b
4 changed files with 45 additions and 7 deletions

View File

@@ -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": {