web

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

templ: version: v0.3.977

Index

Constants

View Source
const (
	BaseURLCtxKey contextKeyType = iota
	VersionCtxKey
	LocaleCtxKey
	ManifestCtxKey
	MailCtxKey
)

Variables

View Source
var Content embed.FS

Functions

func AssetPath added in v0.4.4

func AssetPath(ctx context.Context, path string) string

func Base

func Base(title string, header string) templ.Component

func Challenge

func Challenge(challenge string, difficulty int, nonce uint32, ts int64, signature string) templ.Component

func Error

func Error(message string, description string, code string) templ.Component

func GetBaseURL

func GetBaseURL(ctx context.Context) string

func GetLocale added in v0.4.0

func GetLocale(ctx context.Context) string

func GetMail added in v0.4.4

func GetMail(ctx context.Context) string

func GetRequestID added in v0.4.2

func GetRequestID(ctx context.Context) string

func GetVersion

func GetVersion(ctx context.Context) string

func T added in v0.4.0

func T(key string, args ...any) templ.Component

func UnsafeT added in v0.4.0

func UnsafeT(key string, args ...any) templ.Component

Types

type Asset added in v0.4.4

type Asset struct {
	File string `json:"file"`
}

type Manifest added in v0.4.4

type Manifest map[string]Asset

func GetManifest added in v0.4.4

func GetManifest(ctx context.Context) Manifest

func LoadManifest added in v0.4.4

func LoadManifest() (Manifest, error)

Jump to

Keyboard shortcuts

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