engines

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	RenderFile(file string, w io.Writer, data map[string]any) error
	Render(r io.Reader, w io.Writer, data map[string]any) error
}

type EnvsubstEngine added in v0.2.0

type EnvsubstEngine struct{}

func (*EnvsubstEngine) Render added in v0.2.0

func (e *EnvsubstEngine) Render(r io.Reader, w io.Writer, data map[string]any) error

func (*EnvsubstEngine) RenderFile added in v0.2.0

func (e *EnvsubstEngine) RenderFile(file string, w io.Writer, data map[string]any) error

type GoTemplatesEngine

type GoTemplatesEngine struct{}

func (*GoTemplatesEngine) Render

func (e *GoTemplatesEngine) Render(r io.Reader, w io.Writer, data map[string]any) error

func (*GoTemplatesEngine) RenderFile

func (e *GoTemplatesEngine) RenderFile(file string, w io.Writer, data map[string]any) error

type HandlebarsEngine

type HandlebarsEngine struct{}

func (*HandlebarsEngine) Render

func (e *HandlebarsEngine) Render(r io.Reader, w io.Writer, data map[string]any) error

func (*HandlebarsEngine) RenderFile

func (e *HandlebarsEngine) RenderFile(file string, w io.Writer, data map[string]any) error

type JetEngine

type JetEngine struct{}

func (*JetEngine) Render

func (e *JetEngine) Render(r io.Reader, w io.Writer, data map[string]any) error

func (*JetEngine) RenderFile

func (e *JetEngine) RenderFile(file string, w io.Writer, data map[string]any) error

type JinjaEngine

type JinjaEngine struct{}

func (*JinjaEngine) Render

func (e *JinjaEngine) Render(r io.Reader, w io.Writer, data map[string]any) error

func (*JinjaEngine) RenderFile

func (e *JinjaEngine) RenderFile(file string, w io.Writer, data map[string]any) error

type MustacheEngine

type MustacheEngine struct{}

func (*MustacheEngine) Render

func (e *MustacheEngine) Render(r io.Reader, w io.Writer, data map[string]any) error

func (*MustacheEngine) RenderFile

func (e *MustacheEngine) RenderFile(file string, w io.Writer, data map[string]any) error

Jump to

Keyboard shortcuts

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