Versions in this module Expand all Collapse all v0 v0.1.7 Dec 25, 2024 Changes in this version + var ErrDirectoryNotFound = errors.New("directory not found") + var ErrTemplateNotFound = errors.New("template not found") + type Error struct + Doc string + Type ErrorType + Wrapped error + func (e *Error) Error() string + type ErrorType int + const ErrorCompiling + const ErrorLoadingFiles + const ErrorRendering + const ErrorSaving + type FileLoader struct + func NewFileLoader(documentsPath, partialsPath string) *FileLoader + func (l *FileLoader) LoadDocument(name string) ([]template.Template, error) + func (l *FileLoader) LoadDocuments() ([]template.Template, error) + func (l *FileLoader) LoadPartials() ([]template.Template, error) + type Processor struct + func NewProcessor(cfg *config.Config) (*Processor, error) + func (p *Processor) Process() error + func (p *Processor) ProcessSingle(templateName string) error + type ReloadNotifier interface + NotifyReload func() + type Watcher struct + func NewWatcher(proc *Processor, cfg *config.Config, notifier ReloadNotifier) (*Watcher, error) + func (w *Watcher) Stop() + func (w *Watcher) Watch() error