Load a sightly condition based on a cookie check
Hello Community,
Wanted to understand if there is a possibility in AEM to check a cookie and load a sightly tag.
My use case
<sly data-sly-test="${properties.something == 'true'}">
<script>
Cookie condition check only if true execute the below
<div data-sly-test="${properties.something }" data-sly-unwrap>
<script type="text/javascript" src="${properties.script}"></script>
</div>
</script >
</sly>
