String Format Syntax Error
Actually, I am trying to format the string inside the div and when I implement the string format, I am getting a syntax error.
Error, I am getting.
"org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Identifier card.html cannot be correctly instantiated by the Use API"
And the code is
title="${item.includeIcon =='true' ? '<div class=\'sec-secondary-headings\'><h3>{0}</h3></div><div class=\'sec-paragraph\'><div class=\'p3\'>{1}</div> </div> @ format=[item.toolTitle, item.toolDescription]' : ''}"
I don't know what I am doing wrong. Could someone help me, please?