generator

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package generator provides template generation and rendering functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator handles template generation

func New

func New(tmpl *Template, eng engine.Engine) *Generator

New creates a new generator

func (*Generator) Generate

func (g *Generator) Generate(outputPath string, context map[string]interface{}, opts Options) error

Generate generates a project from the template

type Options

type Options struct {
	SkipHooks bool
	DryRun    bool
	Verbose   bool
}

Options for generation

type Template

type Template struct {
	Path   string
	Config *template.Config
}

Template represents a template with its configuration

Jump to

Keyboard shortcuts

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