Update with conditionally unwrapping elements
jvaldas opened this issue · 1 comments
jvaldas commented
Instead of
<sly data-sly-test="${!teaser.active}" data-sly-unwrap> ...</sly>
you could
<sly data-sly-unwrap="${!teaser.active}"> ...</sly>
ErikGrijzen commented
The SLY element only works at the moment in AEM 6.1. In version 6.0 you still have to add the data-sly-unwrap attribute.
I updated the style guide and removed all the data-sly-unwrap attributes from the code examples. Now AEM 6.0 is highlighted as an exception instead of the other way around. Much better that way.
Thank you for the feedback!