internal

package
v0.0.0-...-ddcb0c8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocal

func GetLocal[T any](c *fiber.Ctx, key string) T

GetLocal rerturs local resources

func RenderTemplate

func RenderTemplate(tplContent string, data any) (s string, err *defaultError.Error)

RenderTemplate renders a template with injected data

func SetLocal

func SetLocal[T any](c *fiber.Ctx, key string, value T)

SetLocal sets local resources

Types

type ContentBlock

type ContentBlock struct {
	Title   string
	SubHead string
	Content string
	Link    ContentLink
}

ContentBlock represents a content block entry

type ContentLink struct {
	Label string
	URL   string
}

ContentLink represents a content link entry

type PageNavEntry struct {
	Name string
	Key  string
}

PageNavEntry represents a page navigation entry

Directories

Path Synopsis
cfg
cli
db
Package error defined error struct.
Package error defined error struct.
Package meta app file defines variables.
Package meta app file defines variables.

Jump to

Keyboard shortcuts

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