render

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufferPoolSize = 64
)

Variables

This section is empty.

Functions

func Init

func Init()

func Render

func Render(w http.ResponseWriter, name string, data any)

func RenderError

func RenderError(w http.ResponseWriter, divName string, error string)

func RenderFullPageError

func RenderFullPageError(w http.ResponseWriter, title, header, error string)

func RenderHTMXCompatibleError

func RenderHTMXCompatibleError(w http.ResponseWriter, r *http.Request, msg string, idName string)

func RenderJSONError

func RenderJSONError(w http.ResponseWriter, msg string, errorCode string, statusCode int)

func RenderSimpleMessage

func RenderSimpleMessage(w http.ResponseWriter, divName string, message string)

func RenderWithStatusCode added in v0.0.5

func RenderWithStatusCode(w http.ResponseWriter, statusCode int, name string, data any)

func StaticFSHandler

func StaticFSHandler() http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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