Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-30 22:52:56 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-01 16:13:41 +0300
commit8a49c0b3b8b5a374a64b639f46806192cd663fc9 (patch)
tree540b8ae405e69829957f8cb75832d82977adca61 /tpl/template.go
parenta3bf118eaa0796892047bb7456fe89824e423f27 (diff)
tpl/collections: Make it a package that stands on its own
See #3042
Diffstat (limited to 'tpl/template.go')
-rw-r--r--tpl/template.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tpl/template.go b/tpl/template.go
index 356d66f1e..9fbf6b7b8 100644
--- a/tpl/template.go
+++ b/tpl/template.go
@@ -96,6 +96,10 @@ func (t *TemplateAdapter) Tree() string {
return s
}
+type TemplateFuncsGetter interface {
+ GetFuncs() map[string]interface{}
+}
+
// TemplateTestMocker adds a way to override some template funcs during tests.
// The interface is named so it's not used in regular application code.
type TemplateTestMocker interface {