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

See #3042
This commit is contained in:
Bjørn Erik Pedersen
2017-04-30 23:33:14 +02:00
parent 55f90a3a0d
commit 4714085a10
4 changed files with 60 additions and 31 deletions

View File

@@ -21,7 +21,6 @@ import (
bp "github.com/spf13/hugo/bufferpool"
"github.com/spf13/hugo/deps"
"github.com/spf13/hugo/tpl/urls"
)
// Some of the template funcs are'nt entirely stateless.
@@ -29,9 +28,6 @@ type templateFuncster struct {
funcMap template.FuncMap
cachedPartials partialCache
// Namespaces
urls *urls.Namespace
*deps.Deps
}
@@ -39,9 +35,6 @@ func newTemplateFuncster(deps *deps.Deps) *templateFuncster {
return &templateFuncster{
Deps: deps,
cachedPartials: partialCache{p: make(map[string]interface{})},
// Namespaces
urls: urls.New(deps),
}
}