template

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type H

type H map[string]any

func Default

func Default(c *gin.Context, funcs ...TemplateDataFunc) H

func New

func New(c *gin.Context, funcs ...TemplateDataFunc) H

func WithAuth

func WithAuth(c *gin.Context, data H) H

func WithCsrf

func WithCsrf(c *gin.Context, data H) H

func WithErrors

func WithErrors(c *gin.Context, data H) H

func WithMetadata

func WithMetadata(c *gin.Context, data H) H

func WithOld

func WithOld(c *gin.Context, data H) H

func WithTranslator

func WithTranslator(c *gin.Context, data H) H

func (H) Wrap

func (h H) Wrap(data H) H

type TemplateDataFunc

type TemplateDataFunc func(c *gin.Context, data H) H

func PassFlash

func PassFlash(keys ...string) TemplateDataFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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