diff --git a/plugin.go b/plugin.go index fec7717..2db1d29 100644 --- a/plugin.go +++ b/plugin.go @@ -17,3 +17,10 @@ type FuncProviderFor interface { // may return nil, in which case its result is simply not considered. FuncMapFor (*Document) template.FuncMap } + +// Configurable is an object that can be configured according to metadata. +type Configurable interface { + // Configure uses config to configure the object. It must not modify + // config. Keys are namespaced with a '.' and are written in kebab case. + Configure (config Meta) error +}