Example #1
0
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)
Example #2
0
def all_route():
    return render_template("taskall.html", datalist=data.alldata())
Example #3
0
def aboutus():
    #Flask import uses Jinga to render HTML
    return render_template("aboutus.html", data=data.alldata())
Example #4
0
def contents():
    #Flask import uses Jinga to render HTML
    return render_template("contents.html", data=data.alldata())