Versions in this module Expand all Collapse all v1 v1.0.0 Sep 3, 2023 Changes in this version + var ErrCreateTargetDirectoryFailed = errors.New("failed to create target directory") + var ErrPipeDataNil = errors.New("PipeData is nil") + var ErrPlaceholderMissingInTargetPathTemplate = errors.New("{{KEY}} placeholder missing in target path template") + var ErrRepeatedDataNotFound = errors.New("repeated data key not found in data, must be map[string]any") + func ToMapStringAny(input map[string]T) map[string]any + type ExecuteTemplateError struct + func (e *ExecuteTemplateError) Error() string + func (e *ExecuteTemplateError) Unwrap() error + type FileAction string + const FileActionClose + const FileActionCreateTruncate + const FileActionDecodeYAML + const FileActionOpen + type FileError struct + func (e *FileError) Error() string + func (e *FileError) Unwrap() error + type ParseHTMLError struct + func (e *ParseHTMLError) Error() string + func (e *ParseHTMLError) Unwrap() error + type PipeData struct + Data map[string]any + DataDir string + Errors []error + OutputDir string + Template *template.Template + TemplatesDir string + func NewHTML(functions template.FuncMap) *PipeData + func (pd *PipeData) AddError(err error) *PipeData + func (pd *PipeData) Clone() *PipeData + func (pd *PipeData) LoadGlob(glob string) *PipeData + func (pd *PipeData) LoadRenderRepeated(templatePath, repeatedDataKey, targetPathTemplate string) *PipeData + func (pd *PipeData) LoadRenderSingle(templatePath, targetPath string) *PipeData + func (pd *PipeData) Must() + func (pd *PipeData) MustTransformData(transform func(map[string]any) (map[string]any, error)) *PipeData + func (pd *PipeData) MustWithClones(pipelines []func(pd *PipeData) *PipeData) *PipeData + func (pd *PipeData) RenderRepeated(templateName, repeatedDataKey, targetPathTemplate string) *PipeData + func (pd *PipeData) RenderSingle(templateName, targetPath string) *PipeData + func (pd *PipeData) SetData(key string, value any) *PipeData + func (pd *PipeData) SetDataYAML(key, path string) *PipeData + func (pd *PipeData) WithDataDir(dataDir string) *PipeData + func (pd *PipeData) WithOutputDir(outputDir string) *PipeData + func (pd *PipeData) WithTemplatesDir(templatesDir string) *PipeData