in reply to using HTML img tag in Dancer2
Did you mean this?
'<img src="/images/dragon.jpg" alt="A photo of my dragon.">';
This isn't a Dancer2 issue, but an issue with the HTML you're outputting. You're maybe getting confused with the url("/blah") syntax for referring to images in CSS.
Also, you need to have a file called "images/dragon.jpg" in your "public" directory.
|
|---|