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.
Click to show internal directories.
Click to hide internal directories.