Use of data-sly-template

Avatar

Avatar

manikanthar1295

Avatar

manikanthar1295

manikanthar1295

31-05-2019

Hi Team,

What is exact use of data sly-template in slightly.

I have google but not getting exact usage.

Explain with some example so that i can understand exactly the use of template.

Regards

Manikantha R.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

31-05-2019

Hi,

data-sly-template block is like defining a function which can call later using data-sly-call

data-sly-template: Defines a template. The host element and its content are not output by HTL

data-sly-call: Calls a template defined with data-sly-template. The content of the called template (optionally parameterized) replaces the content of the host element of the call.

e.g.

Answers (0)