diff options
author | Kostis Sagonas <kostis@cs.ntua.gr> | 2010-10-26 00:38:51 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-10-26 00:38:51 +0200 |
commit | 7dc76d578ece73a0ae43d63c733b3c8778c46342 (patch) | |
tree | b83f179e16e625f72cf36cc0ab0710e236f29f2e /src/mustache.erl | |
parent | 1a577fcd433a502fb0e458ea2db96f5b5bae401c (diff) |
Tidier improvements
Diffstat (limited to 'src/mustache.erl')
-rw-r--r-- | src/mustache.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mustache.erl b/src/mustache.erl index a713bd8..df81aed 100644 --- a/src/mustache.erl +++ b/src/mustache.erl @@ -171,13 +171,13 @@ get(Key, Ctx, Mod) -> error -> case erlang:function_exported(Mod, Key, 1) of true -> - Val = to_s(apply(Mod, Key, [Ctx])), + Val = to_s(Mod:Key(Ctx)), % io:format("From Mod/1 {~p, ~p}~n", [Key, Val]), Val; false -> case erlang:function_exported(Mod, Key, 0) of true -> - Val = to_s(apply(Mod, Key, [])), + Val = to_s(Mod:Key()), % io:format("From Mod/0 {~p, ~p}~n", [Key, Val]), Val; false -> |