byline.html HTL Code
Hi all,
I am following WKND tutorial, chapter-6: Custom Component.
The HTL code shows:
<!--/* byline.html */-->
<div data-sly-use.byline="com.adobe.aem.guides.wknd.core.models.Byline"
data-sly-use.placeholderTemplate="core/wcm/components/commons/v1/templates.html"
data-sly-test.hasContent="${!byline.empty}"
class="cmp-byline">
<div class="cmp-byline__image"
data-sly-resource="${ '.' @ resourceType = 'core/wcm/components/image/v2/image' }">
</div>
<h2 class="cmp-byline__name">${byline.name}</h2>
<p class="cmp-byline__occupations">${byline.occupations @ join=', '}</p>
</div>
<sly data-sly-call="${placeholderTemplate.placeholder @ isEmpty=!hasContent}"></sly>
I did not understand placeholder paradigm.
I am aware of invoking a Model using data-sly-use, but not invoking template.
Is it like:
If data-sly-test.hasContent="${!byline.empty}" is true,
"core/wcm/components/commons/v1/templates.html" is displayed?
And "core/wcm/components/commons/v1/templates.html" is a BOX?
Appreciate all your responses.
Thanks,
RK.