I have stored a dynamic url link into a pug variable #{img}. Now I want to include that variable into my image element. Can anyone help me fill in the blank?
#{img} //some dynamic url
img(src=" ") //want to set src = #{img}
do it like this
- var img = "img/test.jpg"
img(src=img)
and read this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With