Documentation
¶
Index ¶
- func Print(ctx *core.Context)
- func Register(name string, c Factory)
- func Unmarshal(data any, value any) error
- type BuildHook
- type ContentHook
- type Factory
- type Hook
- type HookImpl
- func (HookImpl) AfterBuild(context.Context, core.Writer) error
- func (HookImpl) BeforeBuild() error
- func (HookImpl) HandlePage(result *content.Page) *content.Page
- func (HookImpl) HandlePages(results content.Pages) content.Pages
- func (HookImpl) HandleSection(result *content.Section) *content.Section
- func (HookImpl) HandleSections(results content.Sections) content.Sections
- func (HookImpl) HandleTaxonomies(results content.Taxonomies) content.Taxonomies
- func (HookImpl) HandleTaxonomy(result *content.Taxonomy) *content.Taxonomy
- func (HookImpl) HandleTemplateSet(set template.TemplateSet) (template.TemplateSet, error)
- func (HookImpl) HandleWriter(writer core.Writer) (core.Writer, error)
- type Registry
- func (r *Registry) AfterBuild(ctx context.Context, writer core.Writer) error
- func (r *Registry) BeforeBuild() error
- func (r *Registry) HandlePage(result *content.Page) *content.Page
- func (r *Registry) HandlePages(results content.Pages) content.Pages
- func (r *Registry) HandleSection(result *content.Section) *content.Section
- func (r *Registry) HandleSections(results content.Sections) content.Sections
- func (r *Registry) HandleTaxonomies(results content.Taxonomies) content.Taxonomies
- func (r *Registry) HandleTaxonomy(result *content.Taxonomy) *content.Taxonomy
- func (r *Registry) HandleTemplateSet(set template.TemplateSet) (template.TemplateSet, error)
- func (r *Registry) HandleWriter(writer core.Writer) (core.Writer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentHook ¶
type ContentHook interface {
HandlePage(*content.Page) *content.Page
HandlePages(content.Pages) content.Pages
HandleSection(*content.Section) *content.Section
HandleSections(content.Sections) content.Sections
HandleTaxonomy(*content.Taxonomy) *content.Taxonomy
HandleTaxonomies(content.Taxonomies) content.Taxonomies
}
type Hook ¶
type Hook interface {
BuildHook
ContentHook
}
type HookImpl ¶
type HookImpl struct{}
func (HookImpl) BeforeBuild ¶
func (HookImpl) HandleSection ¶
func (HookImpl) HandleSections ¶
func (HookImpl) HandleTaxonomies ¶
func (HookImpl) HandleTaxonomies(results content.Taxonomies) content.Taxonomies
func (HookImpl) HandleTaxonomy ¶
func (HookImpl) HandleTemplateSet ¶
func (HookImpl) HandleTemplateSet(set template.TemplateSet) (template.TemplateSet, error)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) AfterBuild ¶
func (*Registry) BeforeBuild ¶
func (*Registry) HandleSection ¶
func (*Registry) HandleSections ¶
func (*Registry) HandleTaxonomies ¶
func (r *Registry) HandleTaxonomies(results content.Taxonomies) content.Taxonomies
func (*Registry) HandleTaxonomy ¶
func (*Registry) HandleTemplateSet ¶
func (r *Registry) HandleTemplateSet(set template.TemplateSet) (template.TemplateSet, error)
Click to show internal directories.
Click to hide internal directories.