There must be a way to do this ... but I can't find it.
If I pass one dictionary to the template as follows:
@app.route("/")
def my_route():
content = {'thing':'some stuff',
'other':'more stuff'}
return render_template('template.html', content=content)
This works well in my template ... but is there any way that I can give up "content"., From
{{ content.thing }}
I feel like I've seen it before, but can't find it anywhere. Any ideas?
source
share