Sightly data sly test question
Is it possible to still use code within a containing div even if that containing tag resolves data-sly-test as false?
As an example:
I'm trying to show an image that may or may not have an a tag wrapped around it. I have the following code:
<a data-sly-test="{image.link}" href="{image.link}">
<img src="${image.path}">
</a>
The image link is optional so some images won't have a link wrapped around them. However, if a link isn't specified, all of the code is removed. Is it possible to keep the <img src> line even if that test in the wrapping a tag is false?
