templatemap

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

type TemplateMap map[string]any

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.

Jump to

Keyboard shortcuts

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