mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 23:35:13 +00:00
505 B
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 }