<img src="https://openweathermap.org/img/wn/10d@2x.png">
The src url changes dynamically by changing the last part for example, by changing 10d@2x.png to 11d@2x.png a different icon can be obtained. However, I want to dynamically change the url in html using Jinja2 and flask
I tried using
img src="https://openweathermap.org/img/wn/{{icon}}@2x.png"
and send the icon variable from server side, but it won't work