diff --git a/hello.py b/hello.py index 88df815..9cd3423 100644 --- a/hello.py +++ b/hello.py @@ -8,6 +8,10 @@ def hello_world(): return 'Hello, World!' +# @app.route('/hello/') +@app.route('/perspectiveB/') +def perspectiveB(): + return render_template('perspectiveB.html') @app.route('/perspectiveA/') def perspectiveA(): return render_template('perspectiveA.html') diff --git a/templates/perspectiveB.html b/templates/perspectiveB.html new file mode 100644 index 0000000..db218c1 --- /dev/null +++ b/templates/perspectiveB.html @@ -0,0 +1,23 @@ + + + + +Hello from Flask +{% if name %} +

Hello {{ name }}!

+{% else %} +

VVVW

+{% endif %} + + + +
+ test +
+ + +