FuncProviderFor now implies FuncProvider
This commit is contained in:
parent
17bb6a383b
commit
e292c9fbb2
@ -9,8 +9,10 @@ type FuncProvider interface {
|
|||||||
FuncMap () template.FuncMap
|
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 {
|
type FuncProviderFor interface {
|
||||||
|
FuncProvider
|
||||||
// FuncMap provides a template.FuncMap, given a particular document. It
|
// FuncMap provides a template.FuncMap, given a particular document. It
|
||||||
// may return nil, in which case its result is simply not considered.
|
// may return nil, in which case its result is simply not considered.
|
||||||
FuncMapFor (*Document) template.FuncMap
|
FuncMapFor (*Document) template.FuncMap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user