all: Use the configured output types to resolve template type

Closes #320
This commit is contained in:
Bjørn Erik Pedersen
2017-04-04 14:10:20 +02:00
parent 868f89d5c6
commit 7da1b65968
3 changed files with 9 additions and 4 deletions

4
deps/deps.go vendored
View File

@@ -8,6 +8,7 @@ import (
"github.com/spf13/hugo/config"
"github.com/spf13/hugo/helpers"
"github.com/spf13/hugo/hugofs"
"github.com/spf13/hugo/output"
"github.com/spf13/hugo/tpl"
jww "github.com/spf13/jwalterweatherman"
)
@@ -39,6 +40,9 @@ type Deps struct {
Language *helpers.Language
// All the output formats available for the current site.
OutputFormatsConfig output.Formats
templateProvider ResourceProvider
WithTemplate func(templ tpl.TemplateHandler) error `json:"-"`