I have a Flask route that looks like this:
@app.route(\'/\')
def home():
You may want to use Jinja setup in your Html page, pass the variable to the page and see if updated.
http://flask.pocoo.org/docs/0.11/templating/#jinja-setup
http://jinja.pocoo.org/
As an example:
@app.route('/')
def home():
return render_template(
'home.html',
greetingDictionary = {"greeting": "hello" , "forthoseabouttorock" :"wesaluteyou" }
)
{% for key in greetingDictionary %}
{{key}}
{{greetingDictionary[key]}}
{% endfor %}