From d25838ff69e3c99cce96cb4e21055eef9e85aa06 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 23 Dec 2014 04:40:37 +0000 Subject: Add support for custom templates in subdirectories - Includes tests for templates and their application --- .../.rebar3/templates/app/test_app.template | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/rebar_new_SUITE_data/.rebar3/templates/app/test_app.template (limited to 'test/rebar_new_SUITE_data/.rebar3/templates/app/test_app.template') diff --git a/test/rebar_new_SUITE_data/.rebar3/templates/app/test_app.template b/test/rebar_new_SUITE_data/.rebar3/templates/app/test_app.template new file mode 100644 index 0000000..b17e30c --- /dev/null +++ b/test/rebar_new_SUITE_data/.rebar3/templates/app/test_app.template @@ -0,0 +1,12 @@ +{description, "OTP Application"}. +{variables, [ + {name, "mylib", "Name of the OTP application"}, + {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"}. +{template, "LICENSE.dtl", "{{name}}/LICENSE"}. +{template, "README.md.dtl", "{{name}}/README.md"}. -- cgit v1.1