Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDirectoryNotFound = errors.New("directory not found")
View Source
var ErrTemplateNotFound = errors.New("template not found")
Functions ¶
This section is empty.
Types ¶
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
func NewFileLoader ¶
func NewFileLoader(documentsPath, partialsPath string) *FileLoader
func (*FileLoader) LoadDocument ¶
func (l *FileLoader) LoadDocument(name string) ([]template.Template, error)
func (*FileLoader) LoadDocuments ¶
func (l *FileLoader) LoadDocuments() ([]template.Template, error)
func (*FileLoader) LoadPartials ¶
func (l *FileLoader) LoadPartials() ([]template.Template, error)
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func (*Processor) ProcessSingle ¶
type ReloadNotifier ¶
type ReloadNotifier interface {
NotifyReload()
}
Click to show internal directories.
Click to hide internal directories.