templates

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplate

func ParseTemplate(name, content string) (*template.Template, error)

func ParseTemplateFromFile

func ParseTemplateFromFile(
	name string, dirs []string, data models.TemplateData,
) (io.Reader, error)

func Render

func Render(t *template.Template, w io.Writer, data models.TemplateData) error

func SetVersion

func SetVersion(v string)

SetVersion initializes the aerc version displayed in template functions

func Terms

func Terms() []string

Types

type Case

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

func (*Case) Matches

func (c *Case) Matches(s string) bool

func (*Case) Skip

func (c *Case) Skip() bool

func (*Case) Value

func (c *Case) Value() string

type Default

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

func (*Default) Matches

func (d *Default) Matches(s string) bool

func (*Default) Skip

func (d *Default) Skip() bool

func (*Default) Value

func (d *Default) Value() string

type Exclude

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

func (*Exclude) Matches

func (e *Exclude) Matches(s string) bool

func (*Exclude) Skip

func (e *Exclude) Skip() bool

func (*Exclude) Value

func (e *Exclude) Value() string

Jump to

Keyboard shortcuts

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