I have no idea, my flask project writes in a specific flask session variable, called 'card', some data, that for each client I've to display on the client side.
1 Answer
Depends on your client side. But you can pass Python variables as arguments of the "return" :
@app.route("/")
def route_default():
#some code here
return render_template(index.html, myvar=session["card"])
then on your html file (index.html) refer to the variable between a double curl braket : {{myvar}} :
<h1>
card name is : {{myvar}}
</h1>