Browse Source

template_dir option was forgotten in documentation plus recurse in directory added

pull/1282/head
Sébastien Serre 8 years ago
parent
commit
c8ec1546e5
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      rebar.config.sample
  2. +1
    -1
      src/rebar_templater.erl

+ 2
- 1
rebar.config.sample View File

@ -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 View File

@ -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…
Cancel
Save