I want to remove the whole container if the image src is broken, this is my code so far:
<template name="show_price_and_image">
<div class="container">
<div class="content">
{{> brandproductimages}}
</div>
<div class="imgDiv2">
</div>
<br/>
<div class="fu-card__title mdl-typography--text-center">
<h2 class="fu-card__title-text">
{{name}}
</h2>
</div>
<div class="fu-card__price">
{{> brandProductCurrencyPrice}}
</div>
</div>
</div>
</template
<template name="image">
<img class="fu-productimg" src="{{image}}" alt="{{productname}}" title="{{productname}}"/>
</template>
How can I do this?