mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
tpl: Add strings.Repeat
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
07b96d16e8
commit
13435a6f60
@@ -158,6 +158,13 @@ func init() {
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.Repeat,
|
||||
nil,
|
||||
[][2]string{
|
||||
{`{{ "yo" | strings.Repeat 4 }}`, `yoyoyoyo`},
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.ToUpper,
|
||||
[]string{"upper"},
|
||||
[][2]string{
|
||||
|
Reference in New Issue
Block a user