mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
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
This commit is contained in:
@@ -29,6 +29,9 @@ package is auto generated.
|
||||
|
||||
*/
|
||||
|
||||
// Export it so we can populate Hugo's func map with it, which makes it faster.
|
||||
var GoFuncs = builtinFuncs
|
||||
|
||||
// Preparer prepares the template before execution.
|
||||
type Preparer interface {
|
||||
Prepare() (*Template, error)
|
||||
|
Reference in New Issue
Block a user