Netcentric / aem-htl-style-guide

A style guide for the HTML Template Language (HTL), the templating language use by the Adobe Experience Manager (AEM).
MIT License
138 stars 50 forks source link

Update with conditionally unwrapping elements #1

Closed jvaldas closed 9 years ago

jvaldas commented 9 years ago

Instead of

<sly data-sly-test="${!teaser.active}" data-sly-unwrap> ...</sly>

you could

<sly data-sly-unwrap="${!teaser.active}"> ...</sly>
ErikGrijzen commented 9 years ago

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!