Converting strings to template strings
brendan at mozilla.org
Mon Mar 23 20:29:37 UTC 2015
Jason Orendorff wrote:
> But from the few data points I have, approximately 100% of web
> developers, when they first hear "template strings are in ES6", think
> that means something like Mustache in the standard library. Some
> initially try to use the feature that way and get frustrated. I expect
> widespread confusion on this point.
A function wrapped around a template string, where the function's
parameters occur in embedded expressions, goes a long way. But you have
to write the function, after teaching people the basics and apologizing
for misleading them with the t-word.
More information about the es-discuss