-
QuestionHi, my project is currently based on fastapi+jinja2 templates. I want to utilize the nice agGrid tables generated by nicegui and tried to just generate html (of the table) and embed it in my templates but didnt work. (Got the 'slot stack for this task is empty.' bug ). Then I decided to look into the fastapi example, and had some questions.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
In addition, where does the binding of the frontend apis (e.g. show()) happen? during run with? If I want to separate the different pages and import them in frontend.py how would I do it? |
Beta Was this translation helpful? Give feedback.
-
Yes.
You are right. When migrating from a pure FastAPI implementation, it might me cleaner/easier to just remove your own app instantiation and use
Have a look at our modularization example. |
Beta Was this translation helpful? Give feedback.
Yes.
You are right. When migrating from a pure FastAPI implementation, it might me cleaner/easier to just remove your own app instantiation and use
from nicegui import app
instead to register the non-UI routes.Have a look at our modularization example.