Rendring code in html template sightly
Hi All,
Good evening!!!
Need small help on sighlty,
Created one component with below content and have to render layout based on selector as layout3, actually layout3 is objevalue.
<div data-sly-use.myObj="Test">
<ul data-sly-list.keyName="${myObj.name}">
<div data-sly-test.objvalue=${keyName} data-sly-unwrap/>
</ul>
</div>
So layout3 component should be executed with below content but is the object is not rendering in layout3.
<li>KEY: ${keyName}, VALUE: ${myObj.name[keyName]}</li>
It is working fine if put code in one component with out selector.
Thanks in advance.
Nani.