v1.12.0
Specification Update
Mustache specification v1.2.1 compatible, but Inheritence added in v1.2.0 is not currently supported. ( #56 )
Behavior Changes
Null treats as falsy
bbmustache since v1.11.0 became to treats nil as falsy.
In addition to this, null specified in the specification is also now treated as falsy.
ref: https://github.com/mustache/spec/blob/v1.2.1/specs/sections.yml#L50-L54
Print an empty string when the value is null
null
and nil
are now print as empty strings.
If you want to revert the behavior, you can specify any function with the value_serializer
option.
ref: https://github.com/mustache/spec/blob/v1.2.1/specs/interpolation.yml#L104-L108
The behavior of Context has updated.
The behavior of Context has updated.
Make sure you get the output you want, if you are using {{.}}
in mustache templates.
ref: https://github.com/mustache/spec/blob/v1.2.1/specs/sections.yml#L68-L75
ref: https://github.com/mustache/spec/blob/v1.2.1/specs/sections.yml#L92-L131