瀏覽代碼

Merge pull request #1282 from ssbx/custom_template_dir

template_dir option was forgotten in documentation plus recurse in di…
pull/1299/head
Fred Hebert 8 年之前
committed by GitHub
父節點
當前提交
de9f341c9b
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. +2
    -1
      rebar.config.sample
  2. +1
    -1
      src/rebar_templater.erl

+ 2
- 1
rebar.config.sample 查看文件

@ -128,7 +128,8 @@
%% Paths to miscellaneous Erlang files to compile for an app
%% without including them in its modules list
{extra_src_dirs, []}.
%% Path where custom rebar3 templates could be found
{template_dir, []}.
%% == EDoc ==

+ 1
- 1
src/rebar_templater.erl 查看文件

@ -326,7 +326,7 @@ find_other_templates(State) ->
undefined ->
[];
TemplateDir ->
rebar_utils:find_files(TemplateDir, ?TEMPLATE_RE)
rebar_utils:find_files(TemplateDir, ?TEMPLATE_RE, true) % recursive
end.
%% Fetch template indexes that sit on disk in plugins

Loading…
取消
儲存