Преглед изворни кода

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 година
родитељ
комит
731c3fd8a4
2 измењених фајлова са 2 додато и 1 уклоњено
  1. +1
    -0
      priv/templates/app.template
  2. +1
    -1
      src/rebar_templater.erl

+ 1
- 0
priv/templates/app.template Прегледај датотеку

@ -4,6 +4,7 @@
{desc, "An OTP application", "Short description of the app"} {desc, "An OTP application", "Short description of the app"}
]}. ]}.
{template, "app.erl.dtl", "{{name}}/src/{{name}}_app.erl"}. {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, "otp_app.app.src.dtl", "{{name}}/src/{{name}}.app.src"}.
{template, "rebar.config.dtl", "{{name}}/rebar.config"}. {template, "rebar.config.dtl", "{{name}}/rebar.config"}.
{template, "gitignore.dtl", "{{name}}/.gitignore"}. {template, "gitignore.dtl", "{{name}}/.gitignore"}.

+ 1
- 1
src/rebar_templater.erl Прегледај датотеку

@ -138,7 +138,7 @@ default_variables() ->
{author_name, "Anonymous"}, {author_name, "Anonymous"},
{author_email, "anonymous@example.org"}, {author_email, "anonymous@example.org"},
{copyright_year, integer_to_list(Y)}, {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 %% Load variable definitions from the 'Globals' file in the home template
%% directory %% directory

Loading…
Откажи
Сачувај