Hi, I have snippet like this:
<sly data-sly-use.svg="${'/apps/foobar/svg.js' @ pngPath={{iconPath}}, iconSize='xs', title={{label}}, desc='', alt={{label}}}">
${svg.html @ context= 'unsafe'}
</sly>
I'd like to pass the handlebars expression using double curly braces '{{ foo }}' to the sightly variable, but I got error
token recognition error at: '{'
I think it because sightly process curly brace and not bypass it. How can I pass that curly brace?
Thank you.
Solved! Go to Solution.
Views
Replies
Total Likes
I'd like to pass the handlebars expression using double curly braces '{{ foo }}' to the sightly variable, but I got error
token recognition error at: '{'
This is not possible, sightly is executed at server, the handlebars variable is available only on the client browser.
Views
Replies
Total Likes
I'd like to pass the handlebars expression using double curly braces '{{ foo }}' to the sightly variable, but I got error
token recognition error at: '{'
This is not possible, sightly is executed at server, the handlebars variable is available only on the client browser.
Views
Replies
Total Likes