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

Do not escape expressions with literals only #350

Closed
emilos opened this issue Nov 25, 2018 · 0 comments
Closed

Do not escape expressions with literals only #350

emilos opened this issue Nov 25, 2018 · 0 comments

Comments

@emilos
Copy link
Contributor

emilos commented Nov 25, 2018

{2 + 2}

currently gives:

function render(__o, __e) {
  var __t = "";
  __t += __e(2 + 2);
  return __t;
}

but could e.g.:

function render(__o, __e) {
  var __t = "";
  __t += 2 + 2;
  return __t;
}

ideally at some point we'd be able to just get (but out of scope of this task):

function render() {
  return "4";
}
@emilos emilos added this to To do in Optimisations Apr 27, 2020
@emilos emilos closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Optimisations
  
To do
Development

No branches or pull requests

1 participant