Permalink
Browse files

use e_conf:template_root() for loading erlydtl templates

  • Loading branch information...
1 parent 8acbf0f commit 0405d58ee14bd103cf752397a8da0835ebd67048 @goj goj committed Jun 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/eptic-1.4/src/e_cache_ets.erl
@@ -93,7 +93,7 @@ cache(File, wpart_xs) ->
XML;
cache(File, erlydtl_expander) ->
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 ->
ets:insert(?MODULE, {File, {date(), time()}, Mod}),
Mod;

0 comments on commit 0405d58

Please sign in to comment.