You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
Hi all,
I am going to make an web site that will use Sanic and Jinja2.
I do not want to put all codes in a single Python file. Therefore I think of this project structure:
ViewControllers
|--- ViewControllerA.py //BluePrint + several Jinja2 template)
|--- ViewControllerB.py
|--- ViewControllerC.py
|--- templateA.html
|--- templateB.html
|--- templateC.html
PluginFeatured // can be installed from
|--- ViewControllerX.py (BluePrint + several Jinja2 template)
|--- ViewControllerY.py
|--- ViewControllerZ.py
|--- templateX.html
|--- templateY.html
|--- templateZ.html
However I don't know how to pass @app.route... to ViewControllerxxx.py in sub folder.
Please help !
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi all,
I am going to make an web site that will use Sanic and Jinja2.
I do not want to put all codes in a single Python file. Therefore I think of this project structure:
However I don't know how to pass @app.route... to ViewControllerxxx.py in sub folder.
Please help !
The text was updated successfully, but these errors were encountered: