You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only supported way to render these error page is by defining them in the host application, but we want to allow users to write the templates for 4xx, 5xx errors at runtime.
Compile a "error module" per site containing all these error templates in Beacon.Loader. Similar to how Layouts are loaded.
In BeaconWeb.ErrorHTML is must pattern match some private assign to find the source site and call the correct render function from the error module for that site. This module acts as a proxy. That's the part we're unsure and should do some research.
Beacon LiveAdmin
Add a new menu item "Error Pages" where users can create a template for each available status. A good example is Page Events beacon_live_admin#50
The text was updated successfully, but these errors were encountered:
Phoenix Endpoint renders templates for errors given the
Endpoint :render_errors
is properly set, and Beacon integrates with this mechanism by raising custom exceptions with a proper:plug_status
.Currently the only supported way to render these error page is by defining them in the host application, but we want to allow users to write the templates for 4xx, 5xx errors at runtime.
Tasks
Beacon
beacon_error_pages
ErrorPage
with at least:template
and:status
fields. Status must be one of the 4xx and 5xx as listed at https://github.com/elixir-plug/plug/blob/main/lib/plug/conn/status.ex#L8Beacon.Content
to manage these error pages. A good example is Implement PageEventHandlers #328html: BeaconWeb.ErrorHTML
Beacon.Loader
. Similar to how Layouts are loaded.BeaconWeb.ErrorHTML
is must pattern match some private assign to find the source site and call the correct render function from the error module for that site. This module acts as a proxy. That's the part we're unsure and should do some research.Beacon LiveAdmin
The text was updated successfully, but these errors were encountered: