File size: 905 Bytes
a9517b4 23345eb a9517b4 23345eb a9517b4 23345eb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
"""
Pages package initialization
"""
# Import all page creation functions
try:
from pages.dashboard import create_dashboard_page
except ImportError as e:
print(f"Warning: Could not import dashboard page: {e}")
create_dashboard_page = None
# You can add more page imports here as needed
# from pages.analytics import create_analytics_page
# from pages.settings import create_settings_page
# from pages.profile import create_profile_page
__all__ = [
'create_dashboard_page',
# Add other page functions here
]
# Optional: Create a page registry for dynamic loading
PAGE_REGISTRY = {
'dashboard': create_dashboard_page,
# Add other pages here
}
def get_page_function(page_name):
"""
Get page function by name
"""
return PAGE_REGISTRY.get(page_name)
def list_available_pages():
"""
List all available pages
"""
return list(PAGE_REGISTRY.keys()) |