We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 114c500 commit f69daf7Copy full SHA for f69daf7
src/mustache.erl
@@ -195,7 +195,7 @@ get(Key, Ctx) when is_list(Key) ->
195
get(Key, Ctx) ->
196
case ?MUSTACHE_CTX:get(Key, Ctx) of
197
{ok, Value} -> to_s(Value);
198
- {error, _} -> []
+ {error, _} -> "{{" ++ to_s(Key) ++ "}}"
199
end.
200
201
@@ -239,4 +239,5 @@ escape_char(Char) -> Char.
239
240
start([T]) ->
241
Out = render(list_to_atom(T)),
242
- io:format(Out ++ "~n", []).
+ io:format(Out ++ "~n", []).
243
+
0 commit comments