templater

package
v1.26.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templater

type Templater struct {
	// contains filtered or unexported fields
}

Templater is golang template renders

func NewTemplater

func NewTemplater(channel *kops.Channel) *Templater

NewTemplater returns a new renderer implementation

func (*Templater) Render

func (r *Templater) Render(content string, context map[string]interface{}, snippets map[string]string, failOnMissing bool) (rendered string, err error)

Render is responsible for actually rendering the template

Jump to

Keyboard shortcuts

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