> Le 16 déc. 2014 à 16:42, Matthew Robb <[email protected]> a écrit :
>
> Actually, it would be cool if some sugar could be done for the example I just
> did:
>
> var template = compile`
> Hello ${{first_name}}
> `;
>
> template({ first_name: "John" });
>
I guess you want sugar for the following valid ES6 code?
```javascript
var template = _ => `
Hello ${_.first_name}
`;
template({ first_name: "John" });
```
—Claude
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss