Does sightly template render based on a condition?
e.g. component.html render based on arguments
if argument one exist
<div data-sly-use.myComponent="${'com.myproject.service' @ param1='one''}">
${myComponent.calculatedValue}
</div>
if argument two exist
<div data-sly-use.myComponent="${'com.myproject.service' @ param2='one''}"">
${myComponent.calculatedValue}
</div>
if argument doesn't exist
<div data-sly-use.myComponent="${'com.myproject.MyComponent'}">
${myComponent.calculatedValue}
</div>
Question 2: How to get param1='one' value (from javascript or jsp)
Question 3: is it possible to do string operation on this value ${myComponent.calculatedValue}