I made a web application with flask. I want to pass a varable value to my template, to set property.
in python:
web_size="100%"
@app.route('/')
def home():
return render_template("web.html")
def size():
return "50px"
In the html5 file, I used that:
width: {{url_for('size')}};
what did i wrong? and how can I use orl_for command? I think I didn't even understand how it works.