Render hello-world using a html template
parent
aefedbc4a0
commit
73e9320e99
|
@ -1,12 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from flask import Flask
|
||||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello slider"
|
||||
return render_template("hello.html")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Hello Slider!
|
Loading…
Reference in New Issue