We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have recently started working with mvc-flask, however, I unfortunately cannot seem to get view() to work. (view is undefined)
app/routes.py
from mvc_flask import Router Router.get("/", "landing#route")
app/controllers/landing_controller.py
from flask import session class LandingController: def route(self): return view("index.html")
app.py
from flask import Flask from mvc_flask import FlaskMVC app = Flask(__name__) FlaskMVC(app)
The text was updated successfully, but these errors were encountered:
Sorry, I need update readme. You can use the render_template from flask module, instead view function.
readme
render_template
view
from flask import session, render_template class LandingController: def route(self): return render_template("index.html")
Sorry, something went wrong.
No branches or pull requests
Hi,
I have recently started working with mvc-flask, however, I unfortunately cannot seem to get view() to work. (view is undefined)
app/routes.py
app/controllers/landing_controller.py
app.py
The text was updated successfully, but these errors were encountered: