(self, view_func: Callable[..., Any] | str)
| 309 | self.error_handling_mode = "raise" |
| 310 | |
| 311 | def _html_response_wrapper(self, view_func: Callable[..., Any] | str): |
| 312 | async def wrapped(*_args, **_kwargs): |
| 313 | # If view_func is a function, call it; if it's a string, use it directly |
| 314 | html = view_func() if callable(view_func) else view_func |
| 315 | return Response(content=html, media_type="text/html") |
| 316 | |
| 317 | return wrapped |
| 318 | |
| 319 | def setup_index(self, dash_app: Dash): |
| 320 | async def index(_request: Request): |