Changelog History
Page 1
-
v1.11.0 Changes
October 15, 2020 -
v1.10.0 Changes
May 16, 2020๐ New Features
CommandLine tool has been added
make escriptizeecho '{"name", "hoge"}.' \> vars.configecho '{{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.
-
v1.9.0 Changes
March 18, 2020 -
v1.8.1 Changes
December 20, 2019 -
v1.8.0 Changes
May 23, 2019๐ 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 )
-
v1.7.0 Changes
April 17, 2019 -
v1.6.1 Changes
September 27, 2018 -
v1.6.0 Changes
August 15, 2018๐ New features
- Added new option is
raise_on_partial_miss
atbbmustache:parse_option()
#27 bbmustache:option()
split intobbmustache:parse_option()
,bbmustache:compile_option()
,bbmustache:render_option()
.
๐ Bug fix
- ๐ Fix that the processing does not complete, when target of partial does not exist #27
More information
- Added new option is
-
v1.5.0 Changes
August 16, 2017๐ New Feature
#16 Added escape_fun option
- You can disable escaping or specify your own escape.
1> bbmustache:render(<<"{{tag}}">>, [{"tag", "<b>value</b>"}], [{escape_fun, fun(X) -> <<"==>", X/binary, "<==">> end}])). <<"==><b>value</b><==">>2> bbmustache:render(<<"{{tag}}">>, [{"tag", "<b>value</b>"}], [{escape_fun, fun(X) -> X end}])). <<"<b>value</b>">>
#21 Added raise_on_context_miss option
1> bbmustache:render(<<"{{#parent}}{{child}}{{/parent}}">>, [{"parent", true}], [raise_on_context_miss]).** exception error: {context_missing,{key,<<"child">>}}
๐ Bug Fixes
-
v1.4.0 Changes
October 27, 2016e.g.
1\> Map = #{"a" =\> #{"one" =\> 1}, 1\>"b" =\> #{"two" =\> 2},1\>"c" =\> #{"three" =\> 3}}. #{"a" =\> #{"one" =\> 1},"b" =\> #{"two" =\> 2},"c" =\> #{"three" =\> 3}}2\> Template = \<\<"{{#a}}"2\>"{{one}}"2\>"{{#b}}"2\>"{{one}}{{two}}{{c.three}}"2\>"{{/b}}"2\>"{{/a}}"\>\>. \<\<"{{#a}}{{one}}{{#b}}{{one}}{{two}}{{c.three}}{{/b}}{{/a}}"\>\>3\> bbmustache:render(Template, Map). \<\<"1123"\>\>
๐ See also:
#17
https://github.com/mustache/spec/blob/v1.1.3/specs/sections.yml#L56-L93