Browse Source

fixed py conflict

master
alicestrt 4 years ago
parent
commit
2af37a8eec
  1. 4
      hello.py
  2. 23
      templates/perspectiveB.html

4
hello.py

@ -8,6 +8,10 @@ def hello_world():
return 'Hello, World!'
# @app.route('/hello/<name>')
@app.route('/perspectiveB/')
def perspectiveB():
return render_template('perspectiveB.html')
@app.route('/perspectiveA/')
def perspectiveA():
return render_template('perspectiveA.html')

23
templates/perspectiveB.html

@ -0,0 +1,23 @@
<!doctype html>
<html>
<style>
#draggable {
position: absolute;
}
</style>
<head>
<title>Hello from Flask</title>
{% if name %}
<h1>Hello {{ name }}!</h1>
{% else %}
<h1>VVVW</h1>
{% endif %}
</head>
<body>
<div id="draggable">
<img src="../static/images/test1.jpeg" width='500px' alt="test">
</div>
<script src="../static/js/draggable.js"></script>
</body>
</html>
Loading…
Cancel
Save