From 48ee15c7e7806b85ac16055c2719daf3297cfd9b Mon Sep 17 00:00:00 2001 From: klaar Date: Thu, 9 Dec 2010 22:41:11 +0100 Subject: 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 --- src/mustache.erl | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mustache.erl') 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) -> -- cgit v1.1