mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix conversion of boolean atom to string
mustache:render("{{banan}}", dict:from_list([{banan, true}])). ** exception error: no function clause matching mustache:escape(true,[]) in function erl_eval:do_apply/5 in call from erl_eval:expr/5 in call from erl_eval:expr/5 in call from mustache:render/3
This commit is contained in:
parent
6a7e26e12a
commit
48ee15c7e7
1 changed files with 0 additions and 2 deletions
|
@ -190,8 +190,6 @@ to_s(Val) when is_integer(Val) ->
|
|||
integer_to_list(Val);
|
||||
to_s(Val) when is_float(Val) ->
|
||||
io_lib:format("~.2f", [Val]);
|
||||
to_s(Val) when is_boolean(Val) ->
|
||||
Val;
|
||||
to_s(Val) when is_atom(Val) ->
|
||||
atom_to_list(Val);
|
||||
to_s(Val) ->
|
||||
|
|
Loading…
Reference in a new issue