generator

package
v0.0.0-...-5894489 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateInfo

type TemplateInfo struct {
	FileName   string // Original filename: "template-1.html.tmpl"
	ConstName  string // PascalCase name: "Template1"
	SourcePath string // Relative path from source
}

TemplateInfo holds information about a discovered template.

type TemplatesGenerator

type TemplatesGenerator struct {
	// contains filtered or unexported fields
}

TemplatesGenerator generates Go code for template management.

func NewTemplatesGenerator

func NewTemplatesGenerator(cfg *config.TemplatesConfig) *TemplatesGenerator

NewTemplatesGenerator creates a new template generator.

func (*TemplatesGenerator) Generate

func (g *TemplatesGenerator) Generate() error

Generate scans template sources and generates the output file.

Jump to

Keyboard shortcuts

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