Claudius
4 years agoBoss
How to escape dashes in component parameter names?
I am trying to include the Khoros masonry component at a certain location in my own custom component and pass some parameters to support infite scroll like this:
<@component id="media.widget.masonry-grid" li-infinite-scroll="true" li-pagination="false"/>
Unfortunately, this results in the dashes of the component's parameters triggering the following
ParseException:Syntax error in template "preview" in line 802, column 50: Encountered "-", but was expecting: "="
Is there any way to escape these component parameter names to prevent this? I already was browsing the Freemarker documentation in vain for any hints of that 😐