From e292c9fbb27ff17b0e7d67d4b0ec6e2831944ec1 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 7 Dec 2024 01:36:06 -0500 Subject: [PATCH] FuncProviderFor now implies FuncProvider --- plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index a3ed815..fec7717 100644 --- a/plugin.go +++ b/plugin.go @@ -9,8 +9,10 @@ type FuncProvider interface { FuncMap () template.FuncMap } -// FuncProviderFor is an object that provides +// FuncProviderFor is an object that provides a template.FuncMap for a specific +// document. type FuncProviderFor interface { + FuncProvider // FuncMap provides a template.FuncMap, given a particular document. It // may return nil, in which case its result is simply not considered. FuncMapFor (*Document) template.FuncMap