Documentation ¶
Index ¶
- Variables
- func App(name string) *template.Template
- func Avatar(uid string, size uint, class ...string) template.HTML
- func Email(name string) *template.Template
- func Focus(name string) *template.Template
- func JSON(a any) (string, error)
- func LogoText(size int, class ...string) template.HTML
- func Must(name, layout_ string) *template.Template
- func SetCSRF(ctx context.Context, x template.HTML) context.Context
- func SetCaptcha(ctx context.Context, x template.HTMLAttr) context.Context
- type Context
- type Errors
- type Header
- type Metric
- type Overview
- type Period
- type SiteOverView
- type SiteStats
Constants ¶
This section is empty.
Variables ¶
View Source
var Files embed.FS
View Source
var Layouts = template.Must( base().ParseFS(Files, "layout/*.html", ), )
Functions ¶
Types ¶
type Context ¶
type Context struct { Title string Header Header USER *models.User Data map[string]any CSRF template.HTML Captcha template.HTMLAttr Errors map[string]string Form url.Values Code uint64 ResetLink string Token string Email string Config *config.Options HasPin bool Flash *flash.Flash Error *Errors Site *models.Site Recipient string Overview *Overview Stats *SiteStats }
func (*Context) GreetRecipient ¶
func (*Context) ProfileOverview ¶ added in v0.0.13
func (*Context) ProfileSites ¶ added in v0.0.13
type SiteOverView ¶ added in v0.0.13
Click to show internal directories.
Click to hide internal directories.