diff options
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 eca17cd..a713bd8 100644 --- a/src/mustache.erl +++ b/src/mustache.erl @@ -47,7 +47,7 @@ compile(Mod) -> compile(Mod, File) -> code:purge(Mod), - code:load_file(Mod), + {module, _} = code:load_file(Mod), {ok, TemplateBin} = file:read_file(File), Template = re:replace(TemplateBin, "\"", "\\\\\"", [global, {return,list}]), State = #mstate{mod = Mod}, @@ -216,4 +216,4 @@ escape([X | Rest], Acc) -> start([T]) -> Out = render(list_to_atom(T)), io:format(Out ++ "~n", []). -
\ No newline at end of file + |