I have a simple task: to pass the same variable for different routes in the render_template() function. This value is in the base template and I need to pass it on every render_template() function. Can I set this value as a global so that I don't have to set it in every function for different routes?
@app.route('/hello') def hello(name=None): return render_template('hello.html', value=value) @app.route('/bye') def bye(name=None): return render_template('bye.html', value=value)