From c832b567dba73ddbed961b265f2018b3f2cb45ae Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Mon, 10 Nov 2014 19:03:25 +0000 Subject: Redo templates with docs and whatnot This totally breaks compatibility with rebar2, and maybe it shouldn't have. --- priv/templates/otp_app.app.src.dtl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'priv/templates/otp_app.app.src.dtl') diff --git a/priv/templates/otp_app.app.src.dtl b/priv/templates/otp_app.app.src.dtl index 0af909f..cd5ac89 100644 --- a/priv/templates/otp_app.app.src.dtl +++ b/priv/templates/otp_app.app.src.dtl @@ -1,6 +1,5 @@ {application, {{appid}}, - [ - {description, "{{appid}}"} + [{description, "{{desc}}"} ,{vsn, "0.1.0"} ,{registered, []} ,{mod, {'{{appid}}_app', []}} -- cgit v1.1 From 392abf148122be020f3955005497d488d3f881fd Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 11 Nov 2014 01:27:41 +0000 Subject: First unkeyed var is now 'name', appid -> name The first variable can be unkeyed and the provider will sub in the variable name 'name'. Additionally, the built-in templates and documentation have been updated so that 'appid' is now 'name' and the alternative commands are shown. --- priv/templates/otp_app.app.src.dtl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'priv/templates/otp_app.app.src.dtl') diff --git a/priv/templates/otp_app.app.src.dtl b/priv/templates/otp_app.app.src.dtl index cd5ac89..5188f56 100644 --- a/priv/templates/otp_app.app.src.dtl +++ b/priv/templates/otp_app.app.src.dtl @@ -1,8 +1,8 @@ -{application, {{appid}}, +{application, {{name}}, [{description, "{{desc}}"} ,{vsn, "0.1.0"} ,{registered, []} - ,{mod, {'{{appid}}_app', []}} + ,{mod, {'{{name}}_app', []}} ,{applications, [kernel ,stdlib -- cgit v1.1