img src=?
nasr18 opened this issue · comments
I'm using jade template in my nodejs application. I will get detail about logged in user and have to show his profile image if anything is there. I'm using img src tag like <img src="{#user.img} || 'images/user.png'"
. How do i make it work????
if user.image
img(src= user.image)
else
img(src="images/user.png")
or
img(src= user.img || 'images/user.png')