diff --git a/slider.py b/slider.py index f9a15bc..92cbadf 100755 --- a/slider.py +++ b/slider.py @@ -1,12 +1,13 @@ #!/usr/bin/python3 from flask import Flask, render_template +from random import randint app = Flask(__name__) @app.route("/") def hello(): - return render_template("hello.html") + 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 d8a4ccc..54d1f8f 100644 --- a/templates/hello.html +++ b/templates/hello.html @@ -1 +1 @@ -Hello Slider! +Hello slider number {{ num }}!