temingo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectTypes

func ProjectTypes() []string

ProjectTypes returns the available project types for the Init() function

Types

type Breadcrumb struct {
	Name string
	Path string
}

Breadcrumb represents a single breadcrumb with its name and path

type Engine

type Engine struct {
	InputDir                string
	OutputDir               string
	TemingoignorePath       string
	TemplateExtension       string
	MetaTemplateExtension   string
	PartialExtension        string
	MetaFilename            string
	MarkdownContentFilename string
	Values                  map[string]string
	ValuesFilePaths         []string
	NoDeleteOutputDir       bool
	Verbose                 bool
	DryRun                  bool
	Beautify                bool
	Minify                  bool
	Logger                  *slog.Logger
}

func DefaultEngine

func DefaultEngine() Engine

DefaultEngine returns an engine with default values

func (*Engine) InitProject

func (engine *Engine) InitProject(projectType string, targetDir string) error

Initializes the targetDir directory with an example project It checks beforehand if the files / folders that will be written already exist and not do a thing if they do.

func (*Engine) Render

func (engine *Engine) Render() error

Renders the templates in the inputDir, writes them to the outputDir and copies the static files

Jump to

Keyboard shortcuts

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