Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleRenderer ¶
type BundleRenderer = api.BundleRenderer
Re-export api types for backward compatibility
type Registry ¶
type Registry interface {
Register(factory Factory)
GetSupportedTypes() []string
HasType(templateType string) bool
HasSchema(schema string) bool
CreateTemplateBySchema(reader io.Reader, renderBundle BundleRenderer) (Template, io.Reader, error)
CreateTemplateByType(templateType string, renderBundle BundleRenderer) (Template, error)
GetSupportedSchemas() []string
HelpText() string
}
func NewRegistry ¶
func NewRegistry() Registry
NewRegistry creates a new registry and registers all built-in template factories.
type UnknownSchemaError ¶
type UnknownSchemaError struct {
Schema string
}
UnknownSchemaError is returned when a schema is not recognized
func (*UnknownSchemaError) Error ¶
func (e *UnknownSchemaError) Error() string
Click to show internal directories.
Click to hide internal directories.