AEM Include Component in HTL file

    0

    4

    placidmasvidal

    aemhtlsightly

    The preceding code creates a <sly> element to include a component in this HTL. Val 1 is for the component's name and val 2 the path to the component

    Library: AEM

    Shortcut: codAEMIncludeComponent

    Filename pattern: *.html

    <sly data-sly-resource="${'component-name' @ resourceType='path/to/component'}"></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.