summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Serre <sserre.bx@gmail.com>2016-07-23 19:45:46 +0200
committerSébastien Serre <sserre.bx@gmail.com>2016-07-23 19:45:46 +0200
commitc8ec1546e5aa0a5b5aafad7d45d754b6464c2d04 (patch)
treee0c8676f67a18f7cc948e6f4c696ab583e9a7559
parentfef403b341a4c6bdf3626f00cc4c75ce268fa8c2 (diff)
template_dir option was forgotten in documentation plus recurse in directory added
-rw-r--r--rebar.config.sample3
-rw-r--r--src/rebar_templater.erl2
2 files changed, 3 insertions, 2 deletions
diff --git a/rebar.config.sample b/rebar.config.sample
index f57f8dc..54f32b2 100644
--- a/rebar.config.sample
+++ b/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 ==
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 2f33bfc..299b957 100644
--- a/src/rebar_templater.erl
+++ b/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