summaryrefslogtreecommitdiff
path: root/priv/templates/lib.template
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-11-11 01:27:41 +0000
committerFred Hebert <mononcqc@ferd.ca>2014-11-11 01:27:41 +0000
commit392abf148122be020f3955005497d488d3f881fd (patch)
treec70c4a6b9065b0132e785dcf15b90f9833577c7f /priv/templates/lib.template
parent4ed1c4ef581cb780a4b6e2da7cb4e8243b20a370 (diff)
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.
Diffstat (limited to 'priv/templates/lib.template')
-rw-r--r--priv/templates/lib.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/lib.template b/priv/templates/lib.template
index 3f35945..1db3b07 100644
--- a/priv/templates/lib.template
+++ b/priv/templates/lib.template
@@ -1,10 +1,10 @@
{description, "OTP Library application (no processes)"}.
{variables, [
- {appid, "mylib", "Name of the OTP library application"},
+ {name, "mylib", "Name of the OTP library application"},
{desc, "An OTP library", "Short description of the app"}
]}.
-{template, "mod.erl.dtl", "src/{{appid}}.erl"}.
-{template, "otp_lib.app.src.dtl", "src/{{appid}}.app.src"}.
+{template, "mod.erl.dtl", "src/{{name}}.erl"}.
+{template, "otp_lib.app.src.dtl", "src/{{name}}.app.src"}.
{template, "rebar.config.dtl", "rebar.config"}.
{template, "gitignore.dtl", ".gitignore"}.
{template, "LICENSE.dtl", "LICENSE"}.