From 03e7993402d77d15fed31df74206b00cfdd54f9d Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sat, 11 Jan 2014 20:26:10 +0100 Subject: Fix #205 (erlydtl:compile/3 returns warnings) Adapt rebar_erlydtl_compiler to handle warnings emitted by erlydtl:compile/3. --- src/rebar_erlydtl_compiler.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 6172879..27c378d 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -210,6 +210,8 @@ do_compile(Config, Source, Target, DtlOpts) -> Opts) of ok -> ok; + {ok, _Mod, _Bin, Ws} -> + rebar_base_compiler:ok_tuple(Config, Source, Ws); error -> rebar_base_compiler:error_tuple(Config, Source, [], [], Opts); {error, {_File, _Msgs} = Error} -> -- cgit v1.1 From 3c1b8193690ccba7a253a674002c81ac64f90e06 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Tue, 14 Jan 2014 18:31:57 +0100 Subject: erlydtl: add missing clause (Reported-by: goofansu) erlydtl implemented 'binary' option. Add new clause for {binary, false}. --- src/rebar_erlydtl_compiler.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 27c378d..fea8ea6 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -210,6 +210,8 @@ do_compile(Config, Source, Target, DtlOpts) -> Opts) of ok -> ok; + {ok, _Mod, Ws} -> + rebar_base_compiler:ok_tuple(Config, Source, Ws); {ok, _Mod, _Bin, Ws} -> rebar_base_compiler:ok_tuple(Config, Source, Ws); error -> -- cgit v1.1