Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error will retarget HTMX with the appropriate header so it uses the invisible placeholder already present in the page.
func Info ¶
Info will retarget HTMX with the appropriate header so it uses the invisible placeholder already present in the page.
func IsHtmxRequest ¶
func IsHtmxRequest(c echo.Context) bool
IsHtmxRequest checks if the received request has the HX-Request header that indicates a request was performed by HTMX.
func WrapDefaultErrorHandler ¶
func WrapDefaultErrorHandler(defaultErrorHandler echo.HTTPErrorHandler) echo.HTTPErrorHandler
WrapDefaultErrorHandler wraps the provided error handler to properly serve HTML for HTMX and falls back to the provided error handler for other requests including those to Pocketbase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.