tpl/transform: Make it a package that stands on its own

See #3042
This commit is contained in:
Bjørn Erik Pedersen
2017-04-30 23:16:54 +02:00
parent ee5aa84f2a
commit 55f90a3a0d
4 changed files with 54 additions and 19 deletions

View File

@@ -21,7 +21,6 @@ import (
bp "github.com/spf13/hugo/bufferpool"
"github.com/spf13/hugo/deps"
"github.com/spf13/hugo/tpl/transform"
"github.com/spf13/hugo/tpl/urls"
)
@@ -31,8 +30,7 @@ type templateFuncster struct {
cachedPartials partialCache
// Namespaces
transform *transform.Namespace
urls *urls.Namespace
urls *urls.Namespace
*deps.Deps
}
@@ -43,8 +41,7 @@ func newTemplateFuncster(deps *deps.Deps) *templateFuncster {
cachedPartials: partialCache{p: make(map[string]interface{})},
// Namespaces
transform: transform.New(deps),
urls: urls.New(deps),
urls: urls.New(deps),
}
}