From 7dc76d578ece73a0ae43d63c733b3c8778c46342 Mon Sep 17 00:00:00 2001 From: Kostis Sagonas Date: Tue, 26 Oct 2010 00:38:51 +0200 Subject: Tidier improvements --- src/mustache.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mustache.erl') 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 -> -- cgit v1.1