show_image.html 217 B

1234567
  1. <!doctype html>
  2. <title>Hello from Flask</title>
  3. {% if filename %}
  4. <h1>some text <img src="{{ url_for('send_file', filename=filename) }}">more text!</h1>
  5. {% else %}
  6. <h1>no image for whatever reason</h1>
  7. {% endif %}