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.
In reply to Re: using HTML img tag in Dancer2
by tobyink
in thread using HTML img tag in Dancer2
by dp235
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |