1
0

main.py 391 B

123456789101112131415161718
  1. #!/usr/bin/env python3
  2. from nicegui import ui
  3. import custom
  4. import home
  5. import pages
  6. # here we use our custom page decorator directly and just put the content creation into a separate function
  7. @custom.page('/', navtitle='Homepage')
  8. def homepage() -> None:
  9. home.content()
  10. # this call shows that you can also move the whole page creation into a separate file
  11. pages.create()
  12. ui.run()