From 7da1b65968cd78970de8c8b61f5056dc7b0ec6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 4 Apr 2017 14:10:20 +0200 Subject: all: Use the configured output types to resolve template type Closes #320 --- deps/deps.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'deps/deps.go') diff --git a/deps/deps.go b/deps/deps.go index 188863876..99763c115 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -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:"-"` -- cgit v1.2.3