21. Sightly Syntax with examples

preview_player
Показать описание
AEM Tutorial: HTL(HTML templating language)/Sightly:

What sightly offers?
1. Sightly comment.
2. Sightly expression
3. Sightly attributes
4. Sly element

Sightly comment : Recommended over html comments.
Sightly expression: ${}
Sightly attributes: data-sly-use/call/repeat/text/list/test/include/resource.
Sly element: It removes from the output

share, support, like and subscribe

About : AEM/CQ5 tutorial is a youtube channel which helps you to learn AEM concepts theoretically as well as practically.
Рекомендации по теме
Комментарии
Автор

Nice explanation bro pls make a video on sling models using slightly for nestedmultifield component..

naveenkumar-pfdv
Автор

Amazing video.request you to please explain HTL in depth with example

ashishbhatt
Автор

You were not told about data-sly-element sir, what is the purpose of that and what is difference between data-sly-element and data-sly-text sir.please explain me I am getting confuse between both

mounika
Автор

Please explain the difference between data-sly-list and data-sly-repeat as both of them looks same

deepakgupta-hkig
Автор

Is it possible to do condition control with HTL, for example like I want to render div1 when my properties.value=1, render div2 when properties.value=2, render “please add type” when properties.value=0

Thanks

palpal
Автор

Where do we see sightly code in AEM author instance/crx de

sruthig
Автор

Regarding comment : I can see both HTML and HTL in view source.




<html>
<head>
</head>
<body>
<!-- I can see this HTML comment -->
<!--/* I can see this HTL comment */ -->
<h1>Hello World!!</h1>
Title Modified : English
</body>
</html>

TheBacker