Sentencer icon indicating copy to clipboard operation
Sentencer copied to clipboard

Changed {{}} to -{}- to avoid popular collision

Open una opened this issue 7 years ago • 1 comments

Vue.js and other popular libraries like handlebars use {{}}, so I converted it to -{}- to avoid errors that emerged from collision

una avatar Jan 05 '17 03:01 una

Hi Una! :wave:

It would be a backwards compatibility break to switch the default from {{ }} to -{ }-, but I think having an option to change it within Sentencer.configure would be perfect.

Underscore & lodash have _.templateSettings.evaluate, where you can pass a new regular expression to match against. Something like that could work.

What do you think?

kylestetz avatar Jan 05 '17 12:01 kylestetz