diff options
author | klaar <magnus.klaar@sgsstudentbostader.se> | 2010-12-09 22:41:11 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-12-09 23:28:05 +0100 |
commit | 48ee15c7e7806b85ac16055c2719daf3297cfd9b (patch) | |
tree | 384544f04b546036aba011552794333be204a24e /src | |
parent | 6a7e26e12a46997fc3fb8c2a6fc9f009aafeeab4 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/mustache.erl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mustache.erl b/src/mustache.erl index df81aed..86ef53c 100644 --- a/src/mustache.erl +++ b/src/mustache.erl @@ -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) -> |