Releases: soranoba/bbmustache
v1.12.2
v1.12.1
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
v1.11.0
CommandLine tool has been added
New Features
CommandLine tool has been added
make escriptize
echo '{"name", "hoge"}.' > vars.config
echo '{{name}}' > template.mustache
./bbmustache -d vars.config template.mustache
hoge
Data files (-d) support a single assoc list, a single map, and consult format.
Note: the behind term has a high priority in all cases. it is a result of supporting to allow for embedding relative file paths as in config.
Add partial_file_reader option at parse_option
Fix wrong parsing. It only affected when using closure.
Support `{{.}}` on the top level
New Features
More Information
bbmustache:data()
became to equal toterm()
, so you should be careful if you were expecting type restrictions.- When it is passed an invalid data, it raise
function_clause
in the past, but this is gone.- The
unsupported_term
exception added in 1.7.0 is exist yet.
- The
Others
- Remove code to run tests on R16 ( #39 )