I have a small application where input is taken from the user and based on it data is displayed back on the HTML. I have to send data from flask to display on HTML but unable to find a way to do it. There's no error that I encountered.
[Here is my code:][1]
<pre>
from flask import Flask,render_template
app = Flask(__name__)
data=[
{
'name':'Audrin',
'place': 'kaka',
'mob': '7736'
},
{
'name': 'Stuvard',
'place': 'Goa',
'mob' : '546464'
}
]
@app.route("/")
def home():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True)