Skip to content

Commit

Permalink
Merge branch 'dcy-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaos committed Oct 27, 2014
2 parents 0ba11ce + 7352409 commit 741d0a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/erlydtl_runtime.erl
Expand Up @@ -107,7 +107,9 @@ find_value(Key, Tuple) when is_tuple(Tuple) ->
_ ->
undefined
end
end.
end;
find_value(_, _) ->
undefined.

fetch_value(Key, Data, Options) ->
fetch_value(Key, Data, Options, []).
Expand Down
8 changes: 7 additions & 1 deletion test/erlydtl_test_defs.erl
Expand Up @@ -143,7 +143,13 @@ all_test_defs() ->
{"Index tuple using a \"reserved\" keyword",
<<"{{ list.count }}">>,
[{list, [{count, 123}]}],
<<"123">>}
<<"123">>},
{"Index list value",
<<"{{ content.description }}">>,
[{content, "test"}], <<"">>},
{"Index binary value",
<<"{{ content.description }}">>,
[{content, <<"test">>}], <<"">>}
]},
{"now",
[{"now functional",
Expand Down

0 comments on commit 741d0a1

Please sign in to comment.