handlers

package
v0.0.0-...-b860962 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMX

type HTMX struct {
	htmx.Response
}

func NewHTMXResponse

func NewHTMXResponse(resp htmx.Response) HTMX

func (HTMX) Render

func (h HTMX) Render(ctx echo.Context, c templ.Component) error

type Handler

type Handler struct {
	Settings models.Settings
}

func NewHandler

func NewHandler() Handler

func (*Handler) Contacts

func (h *Handler) Contacts(c echo.Context) error

func (*Handler) HTMX

func (h *Handler) HTMX(resp htmx.Response) HTMX

func (*Handler) HTTPError

func (h *Handler) HTTPError(err error, c echo.Context)

func (*Handler) NewHTMXResponse

func (h *Handler) NewHTMXResponse() htmx.Response

func (*Handler) Register

func (h *Handler) Register(s *server.Server)

func (*Handler) Render

func (h *Handler) Render(ctx echo.Context, statusCode int, t templ.Component) error

func (*Handler) Root

func (h *Handler) Root(c echo.Context) error

Root returns the welcome message.

type Manifest

type Manifest struct {
	File    string   `json:"file"`
	Src     string   `json:"src"`
	IsEntry bool     `json:"isEntry"`
	CSS     []string `json:"css"`
}

func LoadManifest

func LoadManifest(path string, mainFile string) Manifest

Jump to

Keyboard shortcuts

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