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

Compiled JS of interpolated strings #14

Open
davej opened this issue May 23, 2015 · 1 comment
Open

Compiled JS of interpolated strings #14

davej opened this issue May 23, 2015 · 1 comment

Comments

@davej
Copy link

davej commented May 23, 2015

Interpolated strings ('this is {interpolated}') are compiled to JS that uses EG's internal ENODE function. Would it be possible to compile to ES6 template strings instead or is there a reason why you don't do this?

@breuleux
Copy link
Owner

Single quote strings used to compile to % documents (ENode) (they still do inside %, for example if you write: b % 'Hello {i % world}'). Then I changed it because it didn't seem useful enough, but I went the lazy route and just slapped .toString() after the original output. Compiling to ES6 template strings would be a good idea, it just requires a few changes to a few files to do it. I'll get around to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants