Skip to content

Commit

Permalink
Fix true and false matching
Browse files Browse the repository at this point in the history
  • Loading branch information
pusewicz committed Feb 18, 2012
1 parent fbcecc2 commit 6a69488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mustache.erl
Expand Up @@ -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]; " ++
Expand Down

0 comments on commit 6a69488

Please sign in to comment.