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

@@ -57,6 +57,12 @@ func init() {
},
)
ns.AddMethodMapping(ctx.Warnf,
[]string{"warnf"},
[][2]string{
{`{{ warnf "%s." "warning" }}`, ``},
},
)
return ns
}