summaryrefslogtreecommitdiff
path: root/priv/templates/app.erl.dtl
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/app.erl.dtl
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/app.erl.dtl')
-rw-r--r--priv/templates/app.erl.dtl6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/app.erl.dtl b/priv/templates/app.erl.dtl
index 1c3e8f2..83eb9a3 100644
--- a/priv/templates/app.erl.dtl
+++ b/priv/templates/app.erl.dtl
@@ -1,9 +1,9 @@
%%%-------------------------------------------------------------------
-%% @doc {{appid}} public API
+%% @doc {{name}} public API
%% @end
%%%-------------------------------------------------------------------
--module({{appid}}_app).
+-module({{name}}_app).
-behaviour(application).
@@ -16,7 +16,7 @@
%%====================================================================
start(_StartType, _StartArgs) ->
- {{appid}}_sup:start_link().
+ {{name}}_sup:start_link().
%%--------------------------------------------------------------------
stop(_State) ->