Adobe AEM6 (CQ) の Sightly テンプレート言語で、多くのコード/ロジックを複製することなく、条件が true の場合にのみ要素に属性を追加するにはどうすればよいですか?
例えば
<ul data-sly-list="${items}" ${if condition1} class="selected"${/if}>
<li${if condition2} class="selected"${/if}>
Lots of other code here
</li>
</ul>