HTL Ternary operation with selectors and extensions
I'm trying to write a HTL statement using ternary operation with selectors and extension. But html is not compiling and throwing error.
${slingModel.shouldHaveSelector ? slingModel.someLink @ selectors='content', extension = 'html' : slingModel.someLink @ extension = 'html' }
Checked in HTL docs, but there is no mention of using ternary operations with extension and selectors.
Any help on the right syntax to be used?