template

package
v0.0.0-...-bc56b68 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 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 EmbedLoader

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

func NewEmbedLoader

func NewEmbedLoader(f fs.FS) *EmbedLoader

func (*EmbedLoader) Abs

func (s *EmbedLoader) Abs(base, name string) string

func (*EmbedLoader) Get

func (s *EmbedLoader) Get(path string) (io.Reader, error)

type Pongo2Template

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

func NewPongo2

func NewPongo2(f fs.FS, patterns ...string) *Pongo2Template

func (*Pongo2Template) Render

func (s *Pongo2Template) Render(w io.Writer, name string, data interface{}, c forest.Context) error

type Template

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

func New

func New(f fs.FS, patterns ...string) *Template

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c forest.Context) error

Jump to

Keyboard shortcuts

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