web

package
v0.0.0-...-20f29a4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRFField

func CSRFField(token string) template.HTML

CSRFField renders a hidden CSRF field using the default name.

func CSRFFieldNamed

func CSRFFieldNamed(name, token string) template.HTML

CSRFFieldNamed renders a hidden CSRF field with a custom name.

func Funcs

func Funcs() render.FuncMap

Funcs returns template helpers for CSRF fields.

Types

type TemplateData

type TemplateData struct {
	Data      any
	CSRFToken string
	Flash     []flash.Message
}

TemplateData carries default template fields.

func TemplateDataFrom

func TemplateDataFrom(ctx *bebo.Context, store *flash.Store, data any) (TemplateData, error)

TemplateDataFrom builds TemplateData from the request context.

Jump to

Keyboard shortcuts

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