template

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTemplate

func RenderTemplate(templatePath, outputPath string, data Data) error

Types

type Data

type Data struct {
	Content            string
	Filename           string
	AbsolutePDFPath    string
	RelativePDFPath    string
	SourcePathAbsolute string
	SourcePathRelative string
	DatetimeProcessed  string
	PageCount          int
	ModelUsed          string
	CustomVariables    map[string]interface{}
}

func CreateTemplateData

func CreateTemplateData(content, filename, inputPath, outputDir string, pageCount int, modelUsed string, customVars map[string]interface{}) Data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL