Forum Discussion

keshavkelkar's avatar
8 years ago

Getting Image from context object

Currently I am using  <img alt="My Image" src="/html/assets/myImage.png" height="38" width="293">  this syntax to get my image from assets  but now i want to get it from context object .... something like 

 

<img alt="My Image" ${asset.get("/html/assets/myImage.png")} height="38" width="293">

 

but  my image is not getting displayed on site.... 

Can anyone suggest where I am going wrong ?