expose pages as public api in App()

This commit is contained in:
Lendemor 2025-02-18 14:14:18 +01:00
parent 6848915883
commit 5eb3db4a28

View File

@ -426,6 +426,15 @@ class App(MiddlewareMixin, LifespanMixin):
"""
return self._event_namespace
@property
def pages(self) -> Dict[str, Component]:
"""Get the compiled pages.
Returns:
The compiled pages.
"""
return self._pages
def __post_init__(self):
"""Initialize the app.