What is the difference between: data-sly-use
, data-sly-resource
, data-sly-include
, and data-sly-template
? I am reading the doc on Sightly
AEM
and I am super confused.
As far as I can see:
data-sly-use
is used to addjs/java
files to render with the docdata-sly-resource
is used to inject componentsdata-sly-include
is used to include other html files (?***?)
And, data-sly-template is confusing, as in:
<div data-sly-use.nav="navigation.js">${nav.foo}</div>
<section data-sly-include="path/to/template.html"></section>
<template data-sly-template.one>blah</template>
<div data-sly-call="${one}"></div>