Skip to content

Commit

Permalink
use e_conf:template_root() for loading erlydtl templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Goj committed Jun 17, 2010
1 parent 8acbf0f commit 0405d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eptic-1.4/src/e_cache_ets.erl
Expand Up @@ -93,7 +93,7 @@ cache(File, wpart_xs) ->
XML; XML;
cache(File, erlydtl_expander) -> cache(File, erlydtl_expander) ->
Mod = list_to_atom(string:join(string:tokens(File, "/.-"), "")), Mod = list_to_atom(string:join(string:tokens(File, "/.-"), "")),
case erlydtl:compile(File, Mod, [{doc_root, e_conf:template_root()}]) of case erlydtl:compile(File, Mod) of
ok -> ok ->
ets:insert(?MODULE, {File, {date(), time()}, Mod}), ets:insert(?MODULE, {File, {date(), time()}, Mod}),
Mod; Mod;
Expand Down

0 comments on commit 0405d58

Please sign in to comment.