tpl: Put Go's internal template funcs in Hugo's map
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 7 Jan 2020 09:23:24 +0000 (10:23 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 7 Jan 2020 12:18:19 +0000 (13:18 +0100)
commit1cf235412f98b42aefe368e99a0e9e95bae6eef7
tree0a73bcff5a768153e3ef36ff2f563a3e3418c255
parentdf6e9efd8f345707932231ea23dc8713afb5b026
tpl: Put Go's internal template funcs in Hugo's map

```
name                            old time/op    new time/op    delta
SiteNew/Many_HTML_templates-16    43.4ms ± 0%    42.7ms ± 0%  -1.71%  (p=0.016 n=4+5)

name                            old alloc/op   new alloc/op   delta
SiteNew/Many_HTML_templates-16    17.5MB ± 0%    17.5MB ± 0%    ~     (p=0.690 n=5+5)

name                            old allocs/op  new allocs/op  delta
SiteNew/Many_HTML_templates-16      247k ± 0%      247k ± 0%    ~     (p=0.310 n=5+5)
```

Fixes #6717
tpl/internal/go_templates/htmltemplate/hugo_template.go
tpl/internal/go_templates/texttemplate/hugo_template.go
tpl/tplimpl/template_funcs.go