I am trying to create a variable in HTML and use the value in multiple places in HTML.
{% let Linktags = "abc,def" %}
<a href="https://www.qatarairways.com/"
target="_blank"
data-tags="{{ Linktags }}"
style="color:#8C919B; text-decoration:underline;"
data-tracking-type="MIRROR_PAGE"
data-nl-type="mirrorPage">
View in browser
</a>
I validated this HTML and there is no syntax issue but it is treating like string data-tags="{{ Linktags }}". instead of getting value from actual variable. I also tried below syntax but it is not working. Any idea how to make this work ?
<a href="https://www.qatarairways.com/"
target="_blank"
data-tags="{%=Linktags %}"
style="color:#8C919B; text-decoration:underline;"
data-tracking-type="MIRROR_PAGE"
data-nl-type="mirrorPage">
View in browser
</a>