render

package
v1.12.0-fork.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

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

func NewRenderer

func NewRenderer(format types.OutFormat, noStyles bool, edit bool) *Renderer

func (*Renderer) Render

func (r *Renderer) Render(scopes []*types.EnvScope, out io.Writer) error

func (*Renderer) SetTemplateFile

func (r *Renderer) SetTemplateFile(name string) error

SetTemplateFile renders with the template file instead of the built-in template of the format. Option strings still come from the format config, and built-in helpers like `item.options` are available to the template.

Jump to

Keyboard shortcuts

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