Skip to content

Conversation

@una
Copy link

@una una commented Jan 5, 2017

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

Vue.js and other popular libraries like handlebars use `{{}}`, so I converted it to `-{}-`
@una una closed this Jan 5, 2017
@una una reopened this Jan 5, 2017
@kylestetz
Copy link
Owner

Hi Una! 👋

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants