Merge pull request #2 from mandlm/develop

Render hello-world using a html template
This commit is contained in:
mandlm 2018-10-28 22:33:16 +01:00 committed by GitHub
commit 0b967b2e2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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()

1
templates/hello.html Normal file
View file

@ -0,0 +1 @@
Hello Slider!