tpl/math: Add log function

It might be very useful for building tag clouds.
This commit is contained in:
Artem Sidorenko
2017-07-03 00:20:49 +02:00
committed by Bjørn Erik Pedersen
parent 41805dca9e
commit 34c566773a
4 changed files with 64 additions and 1 deletions

View File

@@ -43,6 +43,13 @@ func init() {
},
)
ns.AddMethodMapping(ctx.Log,
nil,
[][2]string{
{"{{math.Log 1}}", "0"},
},
)
ns.AddMethodMapping(ctx.Mod,
[]string{"mod"},
[][2]string{