AEM Include CSS and JS Clientlibs in HTL file

    0

    3

    placidmasvidal

    aemhtlsightly

    Add the sly elements to include clientlibs for CSS and JS.

    Library: AEM

    Shortcut: codAEMClientlibs

    <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html">
      <sly
          data-sly-call="${clientlib.css @ categories='reference.to.clientlibs'}"
      ></sly>
    </sly>
    
    
    <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html">
      <sly
          data-sly-call="${clientlib.js @ categories='reference.to.clientlibs'}"
      ></sly>
    </sly>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.