templates

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate(templateName KnownTemplate) (*template.Template, error)

GetTemplate returns a cached template instance according to the template name

Types

type CachedTemplate

type CachedTemplate struct {
	// contains filtered or unexported fields
}

CachedTemplate represents a cached template

type KnownTemplate

type KnownTemplate string
const (
	TEMPLATE_VERIFY_EMAIL   KnownTemplate = "email/verify_email"
	TEMPLATE_PASSWORD_RESET KnownTemplate = "email/password_reset"
)

Known templates

Jump to

Keyboard shortcuts

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