All Versions
11
Latest Version
Avg Release Cycle
145 days
Latest Release
1260 days ago

Changelog History
Page 1

  • v1.11.0 Changes

    October 15, 2020

    Behavior changes

    • #51 #52 Treat nil and empty binaries as false in conditions ({{# xxx}} and {{^ xxx}})

    Others

    • #49 OTP23 compatible
  • v1.10.0 Changes

    May 16, 2020

    ref: #46 #47 #48

    ๐Ÿ†• 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

    ๐Ÿ†• New Features

    • add partial_file_reader option at parse_option() ( #44 #45 )
  • v1.8.1 Changes

    December 20, 2019

    ๐Ÿ› Bug fix

    • ๐Ÿ›  Fix wrong parsing. It only affected when using closure. ( #42 #43 )
  • v1.8.0 Changes

    May 23, 2019

    ๐Ÿ†• New Features

    • ๐Ÿ‘Œ Support {{.}} on the top level ( #38 #40 )

    More Information

    • bbmustache:data() became to equal to term(), 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.

    Others

    • โœ‚ Remove code to run tests on R16 ( #39 )
  • v1.7.0 Changes

    April 17, 2019

    ๐Ÿ†• New features

    • add value_serializer option at compile_option() ( #33 #34 )

    More Information

    • ๐Ÿšฉ become to raise error, if value is unsupported term. ( #35 )
  • v1.6.1 Changes

    September 27, 2018

    ๐Ÿ› Bug fix

    • ๐Ÿ›  Fix incompatible typespecs of some options #28 #29

    More information

    • ๐Ÿ›  Fix typos and modified doc. #30
  • v1.6.0 Changes

    August 15, 2018

    ๐Ÿ†• New features

    • Added new option is raise_on_partial_miss at bbmustache:parse_option() #27
    • bbmustache:option() split into bbmustache: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

    • ๐Ÿ—„ bbmustache:option() is deprecated. #27
    • ๐Ÿ‘ officially support OTP21 #25
    • ๐Ÿ—„ officially deprecated R16 #25
    • ๐Ÿ›  Fix comment of document #23
  • 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, 2016

    e.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