Misc cleanup.
This commit is contained in:
parent
c8a3d64918
commit
baa391fb20
6 changed files with 21 additions and 18 deletions
|
|
@ -137,7 +137,9 @@ func (c *Controller) cachePage(ctx echo.Context, page Page, html *bytes.Buffer)
|
|||
case err == nil:
|
||||
log.Ctx(ctx).Debug("cached page")
|
||||
case !context.IsCanceledError(err):
|
||||
log.Ctx(ctx).Error("failed to cache page", "error", err)
|
||||
log.Ctx(ctx).Error("failed to cache page",
|
||||
"error", err,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,8 +98,12 @@ type Page struct {
|
|||
// This will only be populated if the request ID middleware is in effect for the given request.
|
||||
RequestID string
|
||||
|
||||
// HTMX provides the ability to interact with the HTMX library
|
||||
HTMX struct {
|
||||
Request htmx.Request
|
||||
// Request contains the information provided by HTMX about the current request
|
||||
Request htmx.Request
|
||||
|
||||
// Response contains values to pass back to HTMX
|
||||
Response *htmx.Response
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue