LiveView 1.0 with js.heex files

I have few views which renders JS content with interpolated heex values - view.js.heex

Inside file I have a plain JS with some interpolated values. With update to 1.0 all curly braces in this file treated as HEEX interpolation, while it’s a regular JS braces.

Is there a way to disable brackets on per file basis? I can’t change file structure, since many 3rd party web apps relying on existing format of response.

1 Like

HEEx is HTML+EEx. If you don’t have any HTML in your template file, then you should just use plain EEx.

3 Likes

Damn, that’s makes sense. Thanks!

1 Like