I know how to embed an image into a template. See this question. My question is how to do it in a loop:
<table>
#foreach( $object in $objects )
<tr>
<td>
<img src="cid:${image_cid}"/>
</td>
...
The problem is I need to create a dynamic unique cid placeholder, e.g.:
<img src="cid:${object1_image_cid}"/>
....
<img src="cid:${object2_image_cid}"/>
I've tried using a variable inside of the ${image_cid} variable, but that just crashes. e.g. I tried
${$object.id image_cid}
Any suggestions or ways to solve this?