diff --git a/slider.py b/slider.py index 92cbadf..db343c8 100755 --- a/slider.py +++ b/slider.py @@ -5,9 +5,11 @@ from random import randint app = Flask(__name__) + @app.route("/") def hello(): - return render_template("hello.html", num = randint(1, 23)) + return render_template("hello.html", num=randint(1, 23)) + if __name__ == "__main__": app.run() diff --git a/templates/hello.html b/templates/hello.html index 54d1f8f..77172c2 100644 --- a/templates/hello.html +++ b/templates/hello.html @@ -1 +1,6 @@ -Hello slider number {{ num }}! + + +

Hello slider number {{ num }}!

+

+ +