Help us shape the future of Go! Take the 2026 Go Developer Survey

generator

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

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 this the main generator engine

func New

func New(rootFolder string, force bool, gs ...Option) Generator

New creates a new initialised generator

func (*Generator) ClearOutput added in v0.1.15

func (g *Generator) ClearOutput()

ClearOutput clean the output folder

func (*Generator) Execute

func (g *Generator) Execute() error

Execute walk thru the folders and register section/pages. After that processing each file.

func (*Generator) GenConfig added in v0.1.6

func (g *Generator) GenConfig() config.Generate

GenConfig return the configuration of the generator

func (*Generator) IsRefreshed added in v0.1.8

func (g *Generator) IsRefreshed() bool

func (*Generator) RenderHTML added in v0.1.15

func (g *Generator) RenderHTML(layoutName string, pg model.Page) error

func (*Generator) SiteConfig added in v0.1.6

func (g *Generator) SiteConfig() config.Site

SiteConfig return the configuration of the site

type Option added in v0.1.15

type Option func(*Generator)

Option func to set a generator option

func WithAutoreload added in v0.1.15

func WithAutoreload(b bool) Option

WithAutoreload adapt autorelaod

Jump to

Keyboard shortcuts

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