jlongster / es6-macros

A collection of sweet.js macros that implement ES6 features for ES5
BSD 2-Clause "Simplified" License
237 stars 18 forks source link

Template strings macro #6

Open Raynos opened 10 years ago

Raynos commented 10 years ago

A subset of template strings could be supported, maybe the entire thing!

jlongster commented 10 years ago

There's been talk on the sweet.js repo about this; I'm not too familiar with template strings but I don't think sweet.js properly handles them yet. I'm not sure if you can implement it as a macro or not, even if sweet.js tokenizes it properly. See https://github.com/mozilla/sweet.js/issues/224