<sly data-sly-test.yourvariable="${yourvalue}"></sly>
Then you can call your variable value as below:
<textarea rows="4" cols="50" name="name">{"Myvariable":${yourvariable}</textarea>
You can also use your variable in a test:
<sly data-sly-test="${yourvalue==true}">displaysomething</sly>
No comments:
Post a Comment
If you have any doubts or questions, please let us know.