I'm kind of new to HTML code, I would like to show some images that my Python code has selected and this is what I came up with. application.py
s = f"""
<img src="{{url_for('static', filename='{file1}')}}" />
<img src="{{url_for('static', filename='{file2}')}}" />
"""
return render_template("index.html", s = s)
file1 and file2 being jpg image file names
index.html
<p>
{{ s|e }}
</p>
This code is just writing the html tags that I made, not displaying an image. Please let me know what I'm doing wrong.