web

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Common

func Common(c *fiber.Ctx) *fiber.Map

func RegisterAppSetupFunc

func RegisterAppSetupFunc(function func(*fiber.App), priority int)

func RegisterCommon

func RegisterCommon(function func(*fiber.Ctx, *fiber.Map))

func Render

func Render(c *fiber.Ctx, template string, data fiber.Map, layout string) error

func Setup

func Setup(app *fiber.App)

Setup executes all registered functions in order of priority

Types

type Imports added in v0.7.0

type Imports string

func NewImports added in v0.7.0

func NewImports() Imports

func (Imports) ImportCSS added in v0.7.0

func (i Imports) ImportCSS(url string) Imports

func (Imports) ImportComponent added in v0.7.0

func (i Imports) ImportComponent(component string) Imports

func (Imports) ImportJS added in v0.7.0

func (i Imports) ImportJS(url string) Imports

func (Imports) Render added in v0.7.0

func (i Imports) Render() template.HTML

Jump to

Keyboard shortcuts

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