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>2022-02-15 17:26:18 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-15 22:01:57 +0300
commitf2e7b49acfaeab4e1a28cb1096f6461b555900fa (patch)
tree1dbcdfe580801a81f978ee0b5dd7b89523da2b9c /tpl/template.go
parent923419d7fde2056f47668acb0981135bce543b7e (diff)
Add --printUnusedTemplates
Fixes #9502
Diffstat (limited to 'tpl/template.go')
-rw-r--r--tpl/template.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tpl/template.go b/tpl/template.go
index 0375b4a17..c5a6a44c0 100644
--- a/tpl/template.go
+++ b/tpl/template.go
@@ -44,6 +44,11 @@ type TemplateFinder interface {
TemplateLookupVariant
}
+// UnusedTemplatesProvider lists unused templates if the build is configured to track those.
+type UnusedTemplatesProvider interface {
+ UnusedTemplates() []FileInfo
+}
+
// TemplateHandler finds and executes templates.
type TemplateHandler interface {
TemplateFinder