Browse Source

fix erlydtl compile

pull/3/head
Tristan Sloughter 10 years ago
parent
commit
b1e9930efc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar_erlydtl_compiler.erl

+ 1
- 1
src/rebar_erlydtl_compiler.erl View File

@ -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} ->

Loading…
Cancel
Save