Releasing Token Expanders
Breaking Changes
InferredTemplateModel.ToString()
override has been removed. Previously, you could have used it to get the string JSON representation of the inferred model. This was done in order to remove our dependency on serializing it withNewtonsoft.Json
. You can now get the un-serialized JSON object using the new method:model.GetModelRepresentation()
.- [Deprecated]: Parse methods taking as argument a
bool disableContentEscaping
have been marked as obsolete, in favor of new methods using aParsingOptions
object.
New Features
This release adds the ability to extend the functionality of Mustachio with new tag types via TokenExpanders, allowing users to add support for partials and custom functionality such as date formatters, localization, etc.
Improvements
- The library has been migrated to use .NetStandard2.0.
Other Changes
- AppVeyor was replaced with Travis CI.