rmorse / babel-plugin-jsx-template-vars

A Babel transform for rendering a template version of your React / Preact app. Useful for generating a pre-render for SSR.
MIT License
10 stars 0 forks source link

Double quotes and encoding with PHP #11

Closed rmorse closed 2 years ago

rmorse commented 2 years ago

There is an issue where the double quotes when referencing array keys is getting encoded when being output to html,

Eg:

$data[ "myVar" ];

becomes

$data[ " myVar " ];

A quick fix for this is to switch to single quotation marks - this has already been completed in the development branch.

rmorse commented 2 years ago

This has been fixed in v0.0.8