瀏覽代碼

Fix erlydtl dependency check

When a DTL template includes other template files, those files don't need
to be compiled separately, and therefore can be given an extension different
from `source_ext` (such as `.dtli`) to avoid being compiled.  This fix
allows rebar to find included dependencies with names `*.dtl*` rather
than `*.dtl` and properly determine if a template file needs to be recompiled.
pull/3/head
Serge Aleynikov 12 年之前
父節點
當前提交
3f5ab55787
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/rebar_erlydtl_compiler.erl

+ 2
- 2
src/rebar_erlydtl_compiler.erl 查看文件

@ -173,8 +173,8 @@ referenced_dtls1(Step, Config, Seen) ->
AllRefs =
lists:append(
[begin
Cmd = lists:flatten(["grep -o [^\\\"]*",
ExtMatch, " ", F]),
Cmd = lists:flatten(["grep -o [^\\\"]*\\",
ExtMatch, "[^\\\"]* ", F]),
case rebar_utils:sh(Cmd, ShOpts) of
{ok, Res} ->
string:tokens(Res, "\n");

Loading…
取消
儲存