Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: disable es6-like string interpolation ${} when compiling templates #62

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

craftamap
Copy link
Owner

This patch disables using ${} in the html templates. This is mostly to avoid conflicts with the provided template that might use ${} in inline javascript natively.

This patch also reverts the changes of #46.
lodash.template is now always called. this is useful for when you want to use process.env.

Therefore, this change is breaking, as it removes ${}, but also always calls lodash again.

If this ever will be a problem, we can also add a configuration option to enable ${} manually again.

Fixes #60
Fixes #57
Fixes #48

…ates

This patch disables using ${} in the html templates. This is mostly
to avoid conflicts with the provided template that might use ${} in
inline javascript natively.

This patch also reverts the changes of #46.
lodash.template is now always called. this is useful for when you want
to use `process.env`.

Therefore, this change is breaking, as it removes ${}, but also always
calls lodash again.

If this ever will be a problem, we can also add a configuration option
to enable ${} manually again.
@craftamap craftamap merged commit 9579e2b into master Aug 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant