Skip to content

Commit f69daf7

Browse files
author
xmppjingle
committed
CUSTOM - Defaults to Key
1 parent 114c500 commit f69daf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mustache.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ get(Key, Ctx) when is_list(Key) ->
195195
get(Key, Ctx) ->
196196
case ?MUSTACHE_CTX:get(Key, Ctx) of
197197
{ok, Value} -> to_s(Value);
198-
{error, _} -> []
198+
{error, _} -> "{{" ++ to_s(Key) ++ "}}"
199199
end.
200200

201201

@@ -239,4 +239,5 @@ escape_char(Char) -> Char.
239239

240240
start([T]) ->
241241
Out = render(list_to_atom(T)),
242-
io:format(Out ++ "~n", []).
242+
io:format(Out ++ "~n", []).
243+

0 commit comments

Comments
 (0)