templates

package
v3.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateEngine

type TemplateEngine interface {
	// RenderFile applies data to the template from srcPath.
	// Instantiated template is saved as dstPath.
	RenderFile(srcPath, dstPath string, data any) error

	// RenderText applies data to the template text. Returns instantiated text.
	RenderText(in string, data any) (string, error)
}

TemplateEngine is an interface to support to use for application template instantiation.

func NewDefaultEngine

func NewDefaultEngine() TemplateEngine

NewDefaultEngine creates and returns default template engine.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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