# This file contains the built-in view templates that Kemal uses.
# Currently it contains templates for 404 and 500 error codes.
def render_404
<<-HTML
Kemal doesn't know this way.
HTML
end
def render_500(context, exception, verbosity)
context.response.content_type = "text/html"
context.response.status_code = 500
template = if verbosity
Kemal::ExceptionPage.for_runtime_exception(context, exception).to_s
else
Kemal::ExceptionPage.for_production_exception
end
context.response.print template
context
end