Escape curly braces in Template7


I cannot find a way to escape curly braces in Template7,
and so scripts like these won’t work:

{{js "b=a||{}" }}
{{js "if(a>b){console.log(123)}"}}

Please help, thanks.

No, it is not possible and T7 is not designed for such things, use T7 Helpers instead or use native ES template

1 Like