Elegant way to generate string from tagged template?

Brendan Eich brendan at mozilla.org
Tue Dec 23 20:44:09 PST 2014


Clever -- treat the cooked values as raw. Should work -- test in Traceur?

/be

Glen Huang wrote:
> On second thought, make it could be just as simple as this?
>
> function tag(templateObj, ..args) {
> 	return String.raw({raw: templateObj}, …args);
> }


More information about the es-discuss mailing list