Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilenameFromPath ¶
Types ¶
type Manager ¶ added in v2.5.4
type Manager struct { // Use template cache? USE_TEMPLATE_CACHE bool // Default base template suffixes BASE_TEMPLATE_SUFFIXES []string // Default directory to look in for base templates BASE_TEMPLATE_DIRS []string TEMPLATE_DIRS []string // Functions to add to templates DEFAULT_FUNCS template.FuncMap // Template file system TEMPLATEFS fs.FS // contains filtered or unexported fields }
Template manager Used for easily fetching templates.
func (*Manager) Get ¶ added in v2.5.4
func (tm *Manager) Get(templateName string, funcs template.FuncMap) (*template.Template, string, error)
Get a template
Click to show internal directories.
Click to hide internal directories.