htmltmpl

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package htmltmpl provides convenience utilities for using html templates in an embedded filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(tmpl *template.Template, fs embedded.FileSystem, p string, filter func(p string, isDir bool) bool) (*template.Template, error)

Load the templates found at the path, omitting any that the filter function returns true for. The filter function may be nil, in which case all files are loaded. The filter function is not called for the initial path. The template passed in will be used to load new templates and will be returned. If the passed in template is nil, a new one will be created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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