Python Flask Render Template Template Pass Variable To Function