Permalink
Browse files

Fix true and false matching

  • Loading branch information...
1 parent fbcecc2 commit 6a69488fb33aada2a29abe61eff4b73334447c8f @pusewicz pusewicz committed Feb 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mustache.erl
View
@@ -113,9 +113,9 @@ compile_section(Name, Content, State) ->
Result = compiler(Content, State),
"fun() -> " ++
"case mustache:get(" ++ Name ++ ", Ctx, " ++ atom_to_list(Mod) ++ ") of " ++
- "true -> " ++
+ "\"true\" -> " ++
Result ++ "; " ++
- "false -> " ++
+ "\"false\" -> " ++
"[]; " ++
"List when is_list(List) -> " ++
"[fun(Ctx) -> " ++ Result ++ " end(dict:merge(CFun, SubCtx, Ctx)) || SubCtx <- List]; " ++

0 comments on commit 6a69488

Please sign in to comment.