sps / mustache-spring-view

java spring framework mvc view for Mustache.js templates
68 stars 31 forks source link

Expose nullValue and emptyStringIsFalse properties through MustacheViewResolver #13

Closed paulespinosa closed 10 years ago

paulespinosa commented 10 years ago

I've exposed the nullValue and emptyStringIsFalse properties in order to allow further customization of the of the mustache compiler. The reason for exposing the nullValue property is because the default setting is too strict and throws an exception when a variable resolves to null. By allowing nullValue to be customized, variables that resolve to null can be transformed into an empty string, for example. The emptyStringIsFalse property was exposed just so it's available to those who need it.