Merge pull request #2 from mandlm/develop
Render hello-world using a html template
This commit is contained in:
commit
0b967b2e2b
2 changed files with 3 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from flask import Flask
|
from flask import Flask, render_template
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def hello():
|
def hello():
|
||||||
return "Hello slider"
|
return render_template("hello.html")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run()
|
app.run()
|
||||||
|
|
1
templates/hello.html
Normal file
1
templates/hello.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Hello Slider!
|
Loading…
Reference in a new issue