templr

package
v0.0.0-...-58886fc Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Opt) iface.Termplr

New ...

func Render

func Render(tpl *template.Template) func(ctx SharedContext) (string, error)

Types

type Opt

type Opt func(*Opts)

Opt ...

type Opts

type Opts struct {
}

Opts ...

func (*Opts) Configure

func (s *Opts) Configure(opts ...Opt) error

Configure ...

type SharedContext

type SharedContext struct {
	Method pgs.Method

	Typ string
}

Jump to

Keyboard shortcuts

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