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.
Click to show internal directories.
Click to hide internal directories.