I'm trying to render an HTML image tag with handlebars. The HTML does get passed to handlebars properly. (So does get passed to the webpage, but the image is not rendered.) How do I fix this?
In my .HBS file I have:
{{HTMLforImage}} {{image}} {{alt}}
and in my .js file I have:
res.render('imageHub', {
HTMLforImage: "<img src = ",
image: "\"" + req.body.imageLink + "\"",
alt: " alt = \"raccoon\">"
});
where imageHub is the page handlebars should render the HTML, but instead of a picture being posted I am just getting the HTML being passed onto the webpage. Any ideas on how to fix this would be really appreciated.