sightly template to populate model class data
Hi All,
I have a requirement, where i will take input from author in <body> via component and display it in <head> section of the page. e.g. any script tag.
I am trying to use <data-sly-template>. Though, i am getting all values when i am using simple text. But when i am trying to access model class variables, i am getting null or no data.
This is working fine: (written in component html and accessed in another html via data-sly-call)
<template data-sly-template.tags>
some random text
</template>
I want this, and its not working: (same as above)
<template data-sly-template.tags>
${tagModel.tagContent}
</template>
Info:I am creating the template in component html and want to use it in basePage.html.
if i try to print ${tagModel.tagContent} in the component html, i am getting value of tagContent.
Please help.