Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow client to inject own Mustache.Compiler #14

Merged
merged 3 commits into from
Feb 12, 2014
Merged

Allow client to inject own Mustache.Compiler #14

merged 3 commits into from
Feb 12, 2014

Conversation

paulespinosa
Copy link

I've removed the injection of nullValue and emptyStringIsFalse properties into MustacheViewResolver and, instead, replaced them with the ability for the client to optionally inject a pre-customized compiler. This commit is still backwards compatible with versions 1.1.1 and prior since the Compiler injection is optional. There is an incompatibility with 1.1.2 since the nullValue and emptyStringIsFalse properties have been removed.

This gives the client the flexibility to try different Compiler configurations within their own code base. Also, this prevents this library from having to be updated every time a new Compiler property is added/removed from the Mustache library.

sps added a commit that referenced this pull request Feb 12, 2014
Allow client to inject own Mustache.Compiler
@sps sps merged commit 8b5ba96 into sps:master Feb 12, 2014
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