def all_route(): return render_template("all.html", datalist=data.alldata()) @p2_newbiecodersbp.route("/england/") def england_route(): return "<h1 style='background-color:blue;color:white'>England!</h1>" if __name__ == "__main__": #runs the application on the repl development server app.run(debug=True)
def all_route(): return render_template("taskall.html", datalist=data.alldata())
def aboutus(): #Flask import uses Jinga to render HTML return render_template("aboutus.html", data=data.alldata())
def contents(): #Flask import uses Jinga to render HTML return render_template("contents.html", data=data.alldata())