summaryrefslogtreecommitdiff
path: root/priv/templates/sup.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-05-01 22:57:29 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-05-01 22:57:29 -0400
commit99cd24f8a1fa2efc4ea8ad39a1877e400e3af28c (patch)
tree2a775c1c286c80af1afeeef61de0d6433a2874c2 /priv/templates/sup.erl
parent6192feea27c5ba1e93be1c43ffb55e50d13e4e97 (diff)
parent2e5496f5f5f3c39bd1e23b4601d1e89d4d2c9767 (diff)
Merge pull request #379 from tsloughter/rm_erlydtl
Remove erlydtl and replace with mustache
Diffstat (limited to 'priv/templates/sup.erl')
-rw-r--r--priv/templates/sup.erl35
1 files changed, 35 insertions, 0 deletions
diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl
new file mode 100644
index 0000000..a2e7209
--- /dev/null
+++ b/priv/templates/sup.erl
@@ -0,0 +1,35 @@
+%%%-------------------------------------------------------------------
+%% @doc {{name}} top level supervisor.
+%% @end
+%%%-------------------------------------------------------------------
+
+-module({{name}}_sup).
+
+-behaviour(supervisor).
+
+%% API
+-export([start_link/0]).
+
+%% Supervisor callbacks
+-export([init/1]).
+
+-define(SERVER, ?MODULE).
+
+%%====================================================================
+%% API functions
+%%====================================================================
+
+start_link() ->
+ supervisor:start_link({local, ?SERVER}, ?MODULE, []).
+
+%%====================================================================
+%% Supervisor callbacks
+%%====================================================================
+
+%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
+init([]) ->
+ {ok, { {one_for_all, 0, 1}, []} }.
+
+%%====================================================================
+%% Internal functions
+%%====================================================================