renderer

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input interface{}

Input holds input to the renderer

type Output

type Output interface {
	// TODO Consider using streams (io.Writer or io.Reader) in the API instead of buffers.
	FileContent(filename string) (string, error)
	ListFiles() ([]string, error)
}

Output holds rendered templates files

type Renderer

type Renderer interface {
	// TODO Consider using streams (io.Writer or io.Reader) in the API instead of buffers.
	Render(input Input) (Output, error)
}

Renderer is an interface for rendering templates from path, name, namespace and values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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