I think I had been doing the whole thing wrong.
Instead of doing:
```
minify`
<ul>
<li>${content}</li>
</ul>
`
```
I should just do:
```
minify(`
<ul>
<li>${content}</li>
</ul>
`)
```
And forget about putting the template object back into a string altogether.
> On Dec 24, 2014, at 12:44 PM, Brendan Eich <[email protected]> wrote:
>
> 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);
>> }
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss