Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
func WithContext(ctx context.Context, v TemplateMap) context.Context
Types ¶
type TemplateMap ¶
TemplateMap is a typemap for the HTML templates.
func FromContext ¶
func FromContext(ctx context.Context) TemplateMap
func (TemplateMap) Title ¶
func (m TemplateMap) Title(f string, args ...any)
Title sets the title on the template map. If a title already exists, the new value is prepended.
Click to show internal directories.
Click to hide internal directories.