bbmustache v1.5.0 Release Notes

Release Date: 2017-08-16 // over 6 years ago
  • ๐Ÿ†• 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