template

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IndexTmplPath = "tmpl/index-readme.tmpl"
	ImageTmplPath = "tmpl/image-readme.tmpl"
)

Functions

func GenerateReadmeImages

func GenerateReadmeImages(ctx *context.Context, images types.Images) error

func GenerateReadmeIndex

func GenerateReadmeIndex(ctx *context.Context, images types.Images, outputPath string) error

func GenerateTemplate

func GenerateTemplate(ctx *context.Context, tmplPath string, data any, outputPath string) error

func GetTemplateFileContent

func GetTemplateFileContent(ctx *context.Context, path string) ([]byte, error)

func OverrideTemplatesFromConfig

func OverrideTemplatesFromConfig(ctx *context.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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