Sightly - ranjanui/AEM GitHub Wiki

Quick Ref: link

<cq:include script="footer.sly">
<div data-sly-include="footer.jsp" />
  • Every sightly markup is a valid HTML5 document
  <div class="sightly-example">
     <header data-sly-include="header.html"></header>
     <h1 data-sly-test="${properties.title}">${properties.title}</h1>
     <section data-sly-use-navigation="Navigation">
        <h1>${navigation.breadcrumb}</h1>
     </section>
     <ul data-sly-list-child="${resource.listChildren}">
        <li>${child.name}</li>
     </ul>
  </div>

Sightly Expression Language : ${} - at run time this expression evaluated

Expression Syntax includes: literal, variables, operators and options
* **Literals**:
  
  Boolean: ${true}, ${false}
  Integers: ${42}, ${42e2}
  Floating Point: **not support**
  String: ${"foo"}, ${'foo'}

Sightly Data Attribute

 Sightly specific attribute

Sightly Comment

<!--/* Sightly comment */-->
⚠️ **GitHub.com Fallback** ⚠️