Переглянути джерело

fix erlydtl compile

pull/3/head
Tristan Sloughter 10 роки тому
джерело
коміт
b1e9930efc
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      src/rebar_erlydtl_compiler.erl

+ 1
- 1
src/rebar_erlydtl_compiler.erl Переглянути файл

@ -231,7 +231,7 @@ do_compile(Config, Source, Target, DtlOpts) ->
Opts = lists:ukeymerge(1, DtlOpts, Sorted), Opts = lists:ukeymerge(1, DtlOpts, Sorted),
?INFO("Compiling \"~s\" -> \"~s\" with options:~n ~s~n", ?INFO("Compiling \"~s\" -> \"~s\" with options:~n ~s~n",
[Source, Target, io_lib:format("~p", [Opts])]), [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)), list_to_atom(module_name(Target)),
Opts) of Opts) of
{ok, _Mod} -> {ok, _Mod} ->

Завантаження…
Відмінити
Зберегти