summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-11-14 18:30:18 +0000
committerFred Hebert <mononcqc@ferd.ca>2014-11-14 18:30:18 +0000
commit731c3fd8a43b49e7d47127c743160705f776ce40 (patch)
tree2d3b51015310e13f547ed841ce130043289d551b
parentad9ca0cc8644b0a89a05ea184483c1d7b8318fcd (diff)
Minor template fixes
- The OTP app template now adds the supevisor - The default apps_dir value does not contain the trailing '/' that the template index already added.
-rw-r--r--priv/templates/app.template1
-rw-r--r--src/rebar_templater.erl2
2 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/app.template b/priv/templates/app.template
index b7bfebc..b17e30c 100644
--- a/priv/templates/app.template
+++ b/priv/templates/app.template
@@ -4,6 +4,7 @@
{desc, "An OTP application", "Short description of the app"}
]}.
{template, "app.erl.dtl", "{{name}}/src/{{name}}_app.erl"}.
+{template, "sup.erl.dtl", "{{name}}/src/{{name}}_sup.erl"}.
{template, "otp_app.app.src.dtl", "{{name}}/src/{{name}}.app.src"}.
{template, "rebar.config.dtl", "{{name}}/rebar.config"}.
{template, "gitignore.dtl", "{{name}}/.gitignore"}.
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index cd0f5d4..4d871cd 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -138,7 +138,7 @@ default_variables() ->
{author_name, "Anonymous"},
{author_email, "anonymous@example.org"},
{copyright_year, integer_to_list(Y)},
- {apps_dir, "apps/", "Directory where applications will be created if needed"}].
+ {apps_dir, "apps", "Directory where applications will be created if needed"}].
%% Load variable definitions from the 'Globals' file in the home template
%% directory