jet

package
v0.0.0-...-c18a219 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Options)

func Debug

func Debug(b ...bool) Option

func Dir

func Dir(f fs.FS, dir string) Option

func Var

func Var(name string, value interface{}) Option

func VarMap

func VarMap(m map[string]interface{}) Option

type Options

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

type Renderer

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

func Must

func Must(opts ...Option) *Renderer

func New

func New(opts ...Option) (*Renderer, error)

func (*Renderer) Render

func (r *Renderer) Render(w io.Writer, name string, data interface{}, ctx web.Context) error

Jump to

Keyboard shortcuts

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