summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-12-23 04:40:37 +0000
committerFred Hebert <mononcqc@ferd.ca>2014-12-23 04:40:37 +0000
commitd25838ff69e3c99cce96cb4e21055eef9e85aa06 (patch)
treeb2af067090c3e8153257cd04ce262f9ed7abed86 /src
parente81e6d2e31bf59e2f5ecd25c5f7c2f7a8dafd4e2 (diff)
Add support for custom templates in subdirectories
- Includes tests for templates and their application
Diffstat (limited to 'src')
-rw-r--r--src/rebar_templater.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index ca35b26..47ce093 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -272,7 +272,7 @@ find_disk_templates(State) ->
OtherTemplates = find_other_templates(State),
Home = rebar_dir:home_dir(),
HomeFiles = rebar_utils:find_files(filename:join([Home, ?CONFIG_DIR, "templates"]),
- ?TEMPLATE_RE),
+ ?TEMPLATE_RE, true), % recursive
[{file, F} || F <- OtherTemplates ++ HomeFiles].
%% Fetch template indexes that sit on disk in custom areas