tpl: Make the Namespace func signature explicit

This makes it cleaner and avoids breaking client code, such as the docs helper JSON generator.
This commit is contained in:
Bjørn Erik Pedersen
2017-05-20 11:28:33 +03:00
parent ebd636e4d5
commit 1f9e8dcc60
37 changed files with 40 additions and 40 deletions

View File

@@ -26,7 +26,7 @@ func init() {
ns := &internal.TemplateFuncsNamespace{
Name: name,
Context: func() interface{} { return ctx },
Context: func(args ...interface{}) interface{} { return ctx },
}
ns.AddMethodMapping(ctx.Emojify,