Versions in this module Expand all Collapse all v0 v0.1.0 Apr 12, 2024 Changes in this version + type DefaultParser struct + func (pp *DefaultParser) Parse(path string, entry fs.FileInfo, context *ParserContext) (tree.Node, error) + func (pp *DefaultParser) Test(path string, entry fs.FileInfo) (bool, error) + type EntryParser interface + Parse func(path string, entry fs.FileInfo, context *ParserContext) (tree.Node, error) + Test func(path string, entry fs.FileInfo) (bool, error) + type PageAttributes struct + Links []*tree.PageLinksValue + Meta []*tree.PageMetaValue + Template string + Title string + type Parser struct + func New(opts ...ParserOption) *Parser + func (p *Parser) Parse() (*tree.Site, error) + type ParserContext struct + func (pc *ParserContext) Content(path string) ([]byte, error) + func (pc *ParserContext) FrontMatter(path string, output any) error + func (pc *ParserContext) Source(path string) ([]byte, error) + type ParserOption interface + Apply func(*Parser) error + type ParserOptionFunc func(*Parser) error + func WithEntryParsers(parsers ...EntryParser) ParserOptionFunc + func WithSiteFS(siteFS afero.Fs) ParserOptionFunc + func (apply ParserOptionFunc) Apply(p *Parser) error