2016-03-21 19:28:42 -04:00
|
|
|
// Copyright 2016 The Hugo Authors. All rights reserved.
|
2015-12-10 17:19:38 -05:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2017-02-17 07:30:50 -05:00
|
|
|
package tplimpl
|
2015-04-05 15:03:16 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"fmt"
|
2016-03-21 19:28:42 -04:00
|
|
|
"path/filepath"
|
2015-04-05 15:03:16 -04:00
|
|
|
"reflect"
|
|
|
|
"testing"
|
2017-10-07 10:52:35 -04:00
|
|
|
"time"
|
2016-08-04 04:36:44 -04:00
|
|
|
|
2017-01-03 11:28:51 -05:00
|
|
|
"io/ioutil"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
2017-06-13 12:42:45 -04:00
|
|
|
"github.com/gohugoio/hugo/config"
|
|
|
|
"github.com/gohugoio/hugo/deps"
|
|
|
|
"github.com/gohugoio/hugo/helpers"
|
|
|
|
"github.com/gohugoio/hugo/hugofs"
|
|
|
|
"github.com/gohugoio/hugo/i18n"
|
Add support for theme composition and inheritance
This commit adds support for theme composition and inheritance in Hugo.
With this, it helps thinking about a theme as a set of ordered components:
```toml
theme = ["my-shortcodes", "base-theme", "hyde"]
```
The theme definition example above in `config.toml` creates a theme with the 3 components with presedence from left to right.
So, Hugo will, for any given file, data entry etc., look first in the project, and then in `my-shortcode`, `base-theme` and lastly `hyde`.
Hugo uses two different algorithms to merge the filesystems, depending on the file type:
* For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
* For `static`, `layouts` (templates) and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
* `params` (global and per language)
* `menu` (global and per language)
* `outputformats` and `mediatypes`
The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
A final note: Themes/components can also have a `theme` definition in their `config.toml` and similar, which is the "inheritance" part of this commit's title. This is currently not supported by the Hugo theme site. We will have to wait for some "auto dependency" feature to be implemented for that to happen, but this can be a powerful feature if you want to create your own theme-variant based on others.
Fixes #4460
Fixes #4450
2018-03-01 09:01:25 -05:00
|
|
|
"github.com/gohugoio/hugo/langs"
|
2017-06-13 12:42:45 -04:00
|
|
|
"github.com/gohugoio/hugo/tpl"
|
|
|
|
"github.com/gohugoio/hugo/tpl/internal"
|
2017-10-07 10:52:35 -04:00
|
|
|
"github.com/gohugoio/hugo/tpl/partials"
|
2017-06-13 13:07:35 -04:00
|
|
|
"github.com/spf13/afero"
|
2017-01-03 11:28:51 -05:00
|
|
|
jww "github.com/spf13/jwalterweatherman"
|
2016-04-11 16:58:27 -04:00
|
|
|
"github.com/spf13/viper"
|
2017-01-10 04:55:03 -05:00
|
|
|
"github.com/stretchr/testify/require"
|
2015-04-05 15:03:16 -04:00
|
|
|
)
|
|
|
|
|
2017-01-10 04:55:03 -05:00
|
|
|
var (
|
2017-02-15 04:00:34 -05:00
|
|
|
logger = jww.NewNotepad(jww.LevelFatal, jww.LevelFatal, os.Stdout, ioutil.Discard, "", log.Ldate|log.Ltime)
|
|
|
|
)
|
|
|
|
|
Add support for theme composition and inheritance
This commit adds support for theme composition and inheritance in Hugo.
With this, it helps thinking about a theme as a set of ordered components:
```toml
theme = ["my-shortcodes", "base-theme", "hyde"]
```
The theme definition example above in `config.toml` creates a theme with the 3 components with presedence from left to right.
So, Hugo will, for any given file, data entry etc., look first in the project, and then in `my-shortcode`, `base-theme` and lastly `hyde`.
Hugo uses two different algorithms to merge the filesystems, depending on the file type:
* For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
* For `static`, `layouts` (templates) and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
* `params` (global and per language)
* `menu` (global and per language)
* `outputformats` and `mediatypes`
The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
A final note: Themes/components can also have a `theme` definition in their `config.toml` and similar, which is the "inheritance" part of this commit's title. This is currently not supported by the Hugo theme site. We will have to wait for some "auto dependency" feature to be implemented for that to happen, but this can be a powerful feature if you want to create your own theme-variant based on others.
Fixes #4460
Fixes #4450
2018-03-01 09:01:25 -05:00
|
|
|
func newTestConfig() config.Provider {
|
|
|
|
v := viper.New()
|
|
|
|
v.Set("contentDir", "content")
|
|
|
|
v.Set("dataDir", "data")
|
|
|
|
v.Set("i18nDir", "i18n")
|
|
|
|
v.Set("layoutDir", "layouts")
|
|
|
|
v.Set("archetypeDir", "archetypes")
|
|
|
|
return v
|
|
|
|
}
|
|
|
|
|
2017-02-04 22:20:06 -05:00
|
|
|
func newDepsConfig(cfg config.Provider) deps.DepsCfg {
|
Add support for theme composition and inheritance
This commit adds support for theme composition and inheritance in Hugo.
With this, it helps thinking about a theme as a set of ordered components:
```toml
theme = ["my-shortcodes", "base-theme", "hyde"]
```
The theme definition example above in `config.toml` creates a theme with the 3 components with presedence from left to right.
So, Hugo will, for any given file, data entry etc., look first in the project, and then in `my-shortcode`, `base-theme` and lastly `hyde`.
Hugo uses two different algorithms to merge the filesystems, depending on the file type:
* For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
* For `static`, `layouts` (templates) and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
* `params` (global and per language)
* `menu` (global and per language)
* `outputformats` and `mediatypes`
The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
A final note: Themes/components can also have a `theme` definition in their `config.toml` and similar, which is the "inheritance" part of this commit's title. This is currently not supported by the Hugo theme site. We will have to wait for some "auto dependency" feature to be implemented for that to happen, but this can be a powerful feature if you want to create your own theme-variant based on others.
Fixes #4460
Fixes #4450
2018-03-01 09:01:25 -05:00
|
|
|
l := langs.NewLanguage("en", cfg)
|
2017-02-15 04:00:34 -05:00
|
|
|
return deps.DepsCfg{
|
2017-02-04 22:20:06 -05:00
|
|
|
Language: l,
|
|
|
|
Cfg: cfg,
|
|
|
|
Fs: hugofs.NewMem(l),
|
|
|
|
Logger: logger,
|
|
|
|
TemplateProvider: DefaultTemplateProvider,
|
|
|
|
TranslationProvider: i18n.NewTranslationProvider(),
|
2017-01-10 04:55:03 -05:00
|
|
|
}
|
2017-02-15 04:00:34 -05:00
|
|
|
}
|
2017-01-03 11:28:51 -05:00
|
|
|
|
2017-04-30 11:45:56 -04:00
|
|
|
func TestTemplateFuncsExamples(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
workingDir := "/home/hugo"
|
|
|
|
|
Add support for theme composition and inheritance
This commit adds support for theme composition and inheritance in Hugo.
With this, it helps thinking about a theme as a set of ordered components:
```toml
theme = ["my-shortcodes", "base-theme", "hyde"]
```
The theme definition example above in `config.toml` creates a theme with the 3 components with presedence from left to right.
So, Hugo will, for any given file, data entry etc., look first in the project, and then in `my-shortcode`, `base-theme` and lastly `hyde`.
Hugo uses two different algorithms to merge the filesystems, depending on the file type:
* For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
* For `static`, `layouts` (templates) and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
* `params` (global and per language)
* `menu` (global and per language)
* `outputformats` and `mediatypes`
The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
A final note: Themes/components can also have a `theme` definition in their `config.toml` and similar, which is the "inheritance" part of this commit's title. This is currently not supported by the Hugo theme site. We will have to wait for some "auto dependency" feature to be implemented for that to happen, but this can be a powerful feature if you want to create your own theme-variant based on others.
Fixes #4460
Fixes #4450
2018-03-01 09:01:25 -05:00
|
|
|
v := newTestConfig()
|
2017-04-30 11:45:56 -04:00
|
|
|
|
|
|
|
v.Set("workingDir", workingDir)
|
|
|
|
v.Set("multilingual", true)
|
2018-03-21 12:21:46 -04:00
|
|
|
v.Set("contentDir", "content")
|
2017-04-30 17:33:14 -04:00
|
|
|
v.Set("baseURL", "http://mysite.com/hugo/")
|
Add support for theme composition and inheritance
This commit adds support for theme composition and inheritance in Hugo.
With this, it helps thinking about a theme as a set of ordered components:
```toml
theme = ["my-shortcodes", "base-theme", "hyde"]
```
The theme definition example above in `config.toml` creates a theme with the 3 components with presedence from left to right.
So, Hugo will, for any given file, data entry etc., look first in the project, and then in `my-shortcode`, `base-theme` and lastly `hyde`.
Hugo uses two different algorithms to merge the filesystems, depending on the file type:
* For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
* For `static`, `layouts` (templates) and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
* `params` (global and per language)
* `menu` (global and per language)
* `outputformats` and `mediatypes`
The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
A final note: Themes/components can also have a `theme` definition in their `config.toml` and similar, which is the "inheritance" part of this commit's title. This is currently not supported by the Hugo theme site. We will have to wait for some "auto dependency" feature to be implemented for that to happen, but this can be a powerful feature if you want to create your own theme-variant based on others.
Fixes #4460
Fixes #4450
2018-03-01 09:01:25 -05:00
|
|
|
v.Set("CurrentContentLanguage", langs.NewLanguage("en", v))
|
2017-04-30 11:45:56 -04:00
|
|
|
|
|
|
|
fs := hugofs.NewMem(v)
|
|
|
|
|
|
|
|
afero.WriteFile(fs.Source, filepath.Join(workingDir, "README.txt"), []byte("Hugo Rocks!"), 0755)
|
|
|
|
|
2017-04-30 16:52:47 -04:00
|
|
|
depsCfg := newDepsConfig(v)
|
|
|
|
depsCfg.Fs = fs
|
|
|
|
d, err := deps.New(depsCfg)
|
2017-04-30 11:45:56 -04:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
|
|
|
var data struct {
|
|
|
|
Title string
|
|
|
|
Section string
|
2018-02-22 03:15:12 -05:00
|
|
|
Hugo map[string]interface{}
|
2017-04-30 11:45:56 -04:00
|
|
|
Params map[string]interface{}
|
|
|
|
}
|
|
|
|
|
|
|
|
data.Title = "**BatMan**"
|
|
|
|
data.Section = "blog"
|
|
|
|
data.Params = map[string]interface{}{"langCode": "en"}
|
2018-02-22 03:15:12 -05:00
|
|
|
data.Hugo = map[string]interface{}{"Version": helpers.MustParseHugoVersion("0.36.1").Version()}
|
2017-04-30 11:45:56 -04:00
|
|
|
|
|
|
|
for _, nsf := range internal.TemplateFuncsNamespaceRegistry {
|
|
|
|
ns := nsf(d)
|
2017-05-01 12:40:34 -04:00
|
|
|
for _, mm := range ns.MethodMappings {
|
|
|
|
for i, example := range mm.Examples {
|
|
|
|
in, expected := example[0], example[1]
|
|
|
|
d.WithTemplate = func(templ tpl.TemplateHandler) error {
|
|
|
|
require.NoError(t, templ.AddTemplate("test", in))
|
|
|
|
require.NoError(t, templ.AddTemplate("partials/header.html", "<title>Hugo Rocks!</title>"))
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
require.NoError(t, d.LoadResources())
|
|
|
|
|
|
|
|
var b bytes.Buffer
|
|
|
|
require.NoError(t, d.Tmpl.Lookup("test").Execute(&b, &data))
|
|
|
|
if b.String() != expected {
|
|
|
|
t.Fatalf("%s[%d]: got %q expected %q", ns.Name, i, b.String(), expected)
|
|
|
|
}
|
2017-04-30 11:45:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-05-01 03:06:42 -04:00
|
|
|
// TODO(bep) it would be dandy to put this one into the partials package, but
|
|
|
|
// we have some package cycle issues to solve first.
|
2016-10-10 18:03:30 -04:00
|
|
|
func TestPartialCached(t *testing.T) {
|
2017-02-04 22:20:06 -05:00
|
|
|
t.Parallel()
|
2016-10-10 18:03:30 -04:00
|
|
|
|
2017-10-07 10:52:35 -04:00
|
|
|
assert := require.New(t)
|
2017-02-15 04:00:34 -05:00
|
|
|
|
2017-10-07 10:52:35 -04:00
|
|
|
partial := `Now: {{ now.UnixNano }}`
|
|
|
|
name := "testing"
|
2016-10-10 18:03:30 -04:00
|
|
|
|
2017-10-07 10:52:35 -04:00
|
|
|
var data struct {
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
|
Add support for theme composition and inheritance
This commit adds support for theme composition and inheritance in Hugo.
With this, it helps thinking about a theme as a set of ordered components:
```toml
theme = ["my-shortcodes", "base-theme", "hyde"]
```
The theme definition example above in `config.toml` creates a theme with the 3 components with presedence from left to right.
So, Hugo will, for any given file, data entry etc., look first in the project, and then in `my-shortcode`, `base-theme` and lastly `hyde`.
Hugo uses two different algorithms to merge the filesystems, depending on the file type:
* For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
* For `static`, `layouts` (templates) and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
* `params` (global and per language)
* `menu` (global and per language)
* `outputformats` and `mediatypes`
The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
A final note: Themes/components can also have a `theme` definition in their `config.toml` and similar, which is the "inheritance" part of this commit's title. This is currently not supported by the Hugo theme site. We will have to wait for some "auto dependency" feature to be implemented for that to happen, but this can be a powerful feature if you want to create your own theme-variant based on others.
Fixes #4460
Fixes #4450
2018-03-01 09:01:25 -05:00
|
|
|
v := newTestConfig()
|
2018-03-21 12:21:46 -04:00
|
|
|
|
|
|
|
config := newDepsConfig(v)
|
2017-10-07 10:52:35 -04:00
|
|
|
|
2017-03-27 14:43:49 -04:00
|
|
|
config.WithTemplate = func(templ tpl.TemplateHandler) error {
|
2017-10-07 10:52:35 -04:00
|
|
|
err := templ.AddTemplate("partials/"+name, partial)
|
2017-01-10 04:55:03 -05:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
|
2017-03-25 09:37:04 -04:00
|
|
|
de, err := deps.New(config)
|
2017-10-07 10:52:35 -04:00
|
|
|
assert.NoError(err)
|
|
|
|
assert.NoError(de.LoadResources())
|
2017-01-10 04:55:03 -05:00
|
|
|
|
2017-10-07 10:52:35 -04:00
|
|
|
ns := partials.New(de)
|
2016-10-10 18:03:30 -04:00
|
|
|
|
2017-10-07 10:52:35 -04:00
|
|
|
res1, err := ns.IncludeCached(name, &data)
|
|
|
|
assert.NoError(err)
|
|
|
|
|
|
|
|
for j := 0; j < 10; j++ {
|
|
|
|
time.Sleep(2 * time.Nanosecond)
|
|
|
|
res2, err := ns.IncludeCached(name, &data)
|
|
|
|
assert.NoError(err)
|
|
|
|
|
|
|
|
if !reflect.DeepEqual(res1, res2) {
|
|
|
|
t.Fatalf("cache mismatch")
|
|
|
|
}
|
|
|
|
|
|
|
|
res3, err := ns.IncludeCached(name, &data, fmt.Sprintf("variant%d", j))
|
|
|
|
assert.NoError(err)
|
|
|
|
|
|
|
|
if reflect.DeepEqual(res1, res3) {
|
|
|
|
t.Fatalf("cache mismatch")
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
}
|
2017-10-07 10:52:35 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func BenchmarkPartial(b *testing.B) {
|
|
|
|
doBenchmarkPartial(b, func(ns *partials.Namespace) error {
|
|
|
|
_, err := ns.Include("bench1")
|
|
|
|
return err
|
|
|
|
})
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func BenchmarkPartialCached(b *testing.B) {
|
2017-10-07 10:52:35 -04:00
|
|
|
doBenchmarkPartial(b, func(ns *partials.Namespace) error {
|
|
|
|
_, err := ns.IncludeCached("bench1", nil)
|
|
|
|
return err
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func doBenchmarkPartial(b *testing.B, f func(ns *partials.Namespace) error) {
|
2017-02-04 22:20:06 -05:00
|
|
|
config := newDepsConfig(viper.New())
|
2017-03-27 14:43:49 -04:00
|
|
|
config.WithTemplate = func(templ tpl.TemplateHandler) error {
|
2017-10-07 10:52:35 -04:00
|
|
|
err := templ.AddTemplate("partials/bench1", `{{ shuffle (seq 1 10) }}`)
|
2017-01-10 04:55:03 -05:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
|
2017-03-25 09:37:04 -04:00
|
|
|
de, err := deps.New(config)
|
|
|
|
require.NoError(b, err)
|
2017-02-04 22:20:06 -05:00
|
|
|
require.NoError(b, de.LoadResources())
|
2017-01-10 04:55:03 -05:00
|
|
|
|
2017-10-07 10:52:35 -04:00
|
|
|
ns := partials.New(de)
|
2016-10-10 18:03:30 -04:00
|
|
|
|
|
|
|
b.ResetTimer()
|
2017-11-15 19:13:07 -05:00
|
|
|
b.RunParallel(func(pb *testing.PB) {
|
|
|
|
for pb.Next() {
|
|
|
|
if err := f(ns); err != nil {
|
|
|
|
b.Fatalf("error executing template: %s", err)
|
|
|
|
}
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
2017-11-15 19:13:07 -05:00
|
|
|
})
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
|
2017-01-10 04:55:03 -05:00
|
|
|
func newTestFuncster() *templateFuncster {
|
2017-02-04 22:20:06 -05:00
|
|
|
return newTestFuncsterWithViper(viper.New())
|
|
|
|
}
|
|
|
|
|
|
|
|
func newTestFuncsterWithViper(v *viper.Viper) *templateFuncster {
|
|
|
|
config := newDepsConfig(v)
|
2017-03-25 09:37:04 -04:00
|
|
|
d, err := deps.New(config)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2017-02-04 22:20:06 -05:00
|
|
|
|
|
|
|
if err := d.LoadResources(); err != nil {
|
2017-01-10 04:55:03 -05:00
|
|
|
panic(err)
|
2016-10-10 18:03:30 -04:00
|
|
|
}
|
|
|
|
|
2017-03-27 14:43:49 -04:00
|
|
|
return d.Tmpl.(*templateHandler).html.funcster
|
2017-01-10 04:55:03 -05:00
|
|
|
}
|