tpl/strings: Add strings.FirstUpper

Fixes #5174
This commit is contained in:
Bjørn Erik Pedersen
2018-09-07 09:05:25 +02:00
parent d970327d7b
commit e5d66074ce
3 changed files with 19 additions and 3 deletions

View File

@@ -155,6 +155,13 @@ func init() {
},
)
ns.AddMethodMapping(ctx.FirstUpper,
nil,
[][2]string{
{`{{ "hugo rocks!" | strings.FirstUpper }}`, `Hugo rocks!`},
},
)
ns.AddMethodMapping(ctx.Truncate,
[]string{"truncate"},
[][2]string{