engine

package
v0.0.0-...-bde87b4 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Root      string
	Extension string
	Funcs     template.FuncMap
}

type Engine

type Engine interface {
	ParseFS(f fs.FS) error
	Execute(w io.Writer, name string, data any) error
}

Engine is an adapter for a templating engine that is used by a Renderer.

func New

func New(config *Config) Engine

Jump to

Keyboard shortcuts

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