Browse Source

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.
pull/6/head
Fred Hebert 10 years ago
parent
commit
731c3fd8a4
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      priv/templates/app.template
  2. +1
    -1
      src/rebar_templater.erl

+ 1
- 0
priv/templates/app.template View File

@ -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"}.

+ 1
- 1
src/rebar_templater.erl View File

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

Loading…
Cancel
Save