I currently declare a img_path variable as such:
return render_template('index.html', img_path = r"redacted.jpg")
It works fine and dandy here:
<div class="content">
<div class="image-container">
<p>{{ img_path }}</p>
and prints “redacted.JPG” to my html page as expected. When I try to display the actual image here though:
`<img src="/static/{{ img_path }}" alt="Image">`
it no longer works
I have tried several different ways of passing the img_path variable. If I just use the image path it works fine but when i try to pass the path as a variable like above it no longer works… I think the path is being read as /static/img_path when I pass it and that may be what is causing the issue.