summaryrefslogtreecommitdiff
path: root/src/mustache.erl
diff options
context:
space:
mode:
authorKostis Sagonas <kostis@cs.ntua.gr>2010-10-26 00:38:51 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-10-26 00:38:51 +0200
commit7dc76d578ece73a0ae43d63c733b3c8778c46342 (patch)
treeb83f179e16e625f72cf36cc0ab0710e236f29f2e /src/mustache.erl
parent1a577fcd433a502fb0e458ea2db96f5b5bae401c (diff)
Tidier improvements
Diffstat (limited to 'src/mustache.erl')
-rw-r--r--src/mustache.erl4
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 ->