templ

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

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

func (*Template) ExecuteTemplate

func (t *Template) ExecuteTemplate(w http.ResponseWriter, name string, data interface{}) error

func (*Template) Parse

func (t *Template) Parse(driversPath string, templatesPath string) error

type Templater

type Templater interface {
	Parse(driversPath string, templatesPath string) error
	ExecuteTemplate(w http.ResponseWriter, name string, data interface{}) error
}

func New

func New(fsys fs.FS, fns template.FuncMap) Templater

Jump to

Keyboard shortcuts

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