From b1e9930efc8169b0181c17c49949c964b8e5346a Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 18 Oct 2014 23:04:25 -0500 Subject: fix erlydtl compile --- src/rebar_erlydtl_compiler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 5fecd48..1a4de6b 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -231,7 +231,7 @@ do_compile(Config, Source, Target, DtlOpts) -> Opts = lists:ukeymerge(1, DtlOpts, Sorted), ?INFO("Compiling \"~s\" -> \"~s\" with options:~n ~s~n", [Source, Target, io_lib:format("~p", [Opts])]), - case erlydtl:compile(ec_cnv:to_binary(Source), + case erlydtl:compile_file(ec_cnv:to_list(Source), list_to_atom(module_name(Target)), Opts) of {ok, _Mod} -> -- cgit v1.1