Template strings flags

Axel Rauschmayer axel at rauschma.de
Fri Apr 17 18:19:37 UTC 2015


> Why not provide special formatting flags for `Template strings`?
>  
> Tagged template strings are your friend.

If you want to modify behavior (e.g. cut off prefixed whitespace) then more trickery is needed, e.g.:

```js
dedent(String.raw)`…`
```

And there is no handler function that provides untagged behavior.

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150417/d5a85a4e/attachment.html>


More information about the es-discuss mailing list