templates

package
v0.0.0-...-87c4152 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePageTemplates

func ParsePageTemplates(fsys template.TrustedFS) (map[string]*template.Template, error)

ParsePageTemplates parses html templates contained in the given filesystem in order to generate a map of Name->*template.Template.

Separate templates are used so that certain contextual functions (e.g. templateName) can be bound independently for each page.

Templates in directories prefixed with an underscore are considered helper templates and parsed together with the files in each base directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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