tpl: Add a warnf template func

Fixes #6628
This commit is contained in:
Bjørn Erik Pedersen committed 2019-12-21 10:23:00 +01:00
1 parent 4a9d76cead
commit 98c8c8638e
2 files changed
+27 -6

No files matched your search

+16
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": {