html

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFS

func ParseFS(fsys fs.FS, patterns ...string) (*template.Template, error)

ParseFS creates a new text/Template and parses the template definitions from the files identified by the pattern. The files are matched according to the semantics of filepath.Match, and the pattern must match at least one file. The returned template will have the (base) name and (parsed) contents of the first file matched by the pattern.

func ParseWith added in v0.5.1

func ParseWith(t *template.Template, fsys fs.FS, patterns ...string) (*template.Template, error)

ParseWith like ParseFS but need provide a *template.Template instance as parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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