4

I'm having issues with Handlebar triple brackets formatting when inside a script tag. Attaching a gif for this issue as it's hard to explain in words.

Any help would be appreciated.

<script>
   window.cyrTabs = {{ {JSONstringify slice} }}
</script>

enter image description here

Rehan H
  • 314
  • 3
  • 13

1 Answers1

0

I've found a workaround for now. Turned this window.cyrTabs = {{ {JSONstringify slice} }} into var cyrTabs = {{{JSONstringify slice}}}

For some reason, using a var/const/let fixes this issue in VS code.

Rehan H
  • 314
  • 3
  • 13