-
Notifications
You must be signed in to change notification settings - Fork 43
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
Transform Ember.String.fmt with ES6 string interpolation #36
Comments
I'm thinking about using the following transformation:
into
This transformation only needs to generate a unique reference: Any thoughts? |
I'd prefer it to transform it in place, so const str = Ember.String.fmt("a @2 b @1 c @ d", a, b, c); into const str = "a ${a} b ${b} c ${c} d"; |
Yes, that looks much better. |
@kamal your code would transform into:
And what happens if |
Just wondering if the ability to transform the .fmt string prototype has been included in watson yet? |
No description provided.
The text was updated successfully, but these errors were encountered: