summaryrefslogtreecommitdiff
path: root/priv/templates/sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/sup.erl')
-rw-r--r--priv/templates/sup.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl
index a2e7209..020021c 100644
--- a/priv/templates/sup.erl
+++ b/priv/templates/sup.erl
@@ -1,9 +1,10 @@
+{{=@@ @@=}}
%%%-------------------------------------------------------------------
-%% @doc {{name}} top level supervisor.
+%% @doc @@name@@ top level supervisor.
%% @end
%%%-------------------------------------------------------------------
--module({{name}}_sup).
+-module(@@name@@_sup).
-behaviour(supervisor).
@@ -26,9 +27,12 @@ start_link() ->
%% Supervisor callbacks
%%====================================================================
+%% Child :: #{id => Id, start => {M, F, A}}
+%% Optional keys are restart, shutdown, type, modules.
+%% Before OTP 18 tuples must be used to specify a child. e.g.
%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
init([]) ->
- {ok, { {one_for_all, 0, 1}, []} }.
+ {ok, {{one_for_all, 0, 1}, []}}.
%%====================================================================
%% Internal functions