htmx/www/attributes/kt-error-url.md
Carson Gross 0a7ff69ed6 docs
2020-05-09 16:52:48 -07:00

505 B

layout title
layout.njk </> kutty - kt-error-url

kt-error-url

The kt-error-url attribute allows you to send client-side errors to a specified URL. It is typically put on the body tag, so all errors are caught and send to the server.

<body kt-error-url="/errors">\

</body>

When a client side error is caught by kutty it will be POST-ed to the given URL, with the following JSON format:

  { "elt": elt.id, "event": eventName, "detail" : detail }

Notes