hof

package
v0.6.9-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHofTemplate

func NewHofTemplate(val cue.Value) (hofcontext.Runner, error)

Types

type HofTemplate

type HofTemplate struct {
	Name     string
	Data     any
	Template string
	Partials map[string]string

	Delims templates.Delims
}

func (*HofTemplate) Run

func (T *HofTemplate) Run(ctx *hofcontext.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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