mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
@@ -144,6 +144,14 @@ func init() {
|
||||
{`{{ seq 3 }}`, `[1 2 3]`},
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.NewScratch,
|
||||
[]string{"newScratch"},
|
||||
[][2]string{
|
||||
{`{{ $scratch := newScratch }}{{ $scratch.Add "b" 2 }}{{ $scratch.Add "b" 2 }}{{ $scratch.Get "b" }}`, `4`},
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.Uniq,
|
||||
[]string{"uniq"},
|
||||
[][2]string{
|
||||
|
Reference in New Issue
Block a user