summaryrefslogtreecommitdiff
path: root/priv/templates/app.erl.dtl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-09-17 08:52:49 -0500
committerTristan Sloughter <t@crashfast.com>2014-09-17 08:52:49 -0500
commit48769e75c224ccd8e04df250b86b50540270ce9a (patch)
treed4a094d9c82b73a9d57594b366f92fd32d6e7ff7 /priv/templates/app.erl.dtl
parent7d43d0e092be4fff0496e8c3522fbd526074b37f (diff)
wip: move to erlydtl for rebar templates
Diffstat (limited to 'priv/templates/app.erl.dtl')
-rw-r--r--priv/templates/app.erl.dtl27
1 files changed, 27 insertions, 0 deletions
diff --git a/priv/templates/app.erl.dtl b/priv/templates/app.erl.dtl
new file mode 100644
index 0000000..1c3e8f2
--- /dev/null
+++ b/priv/templates/app.erl.dtl
@@ -0,0 +1,27 @@
+%%%-------------------------------------------------------------------
+%% @doc {{appid}} public API
+%% @end
+%%%-------------------------------------------------------------------
+
+-module({{appid}}_app).
+
+-behaviour(application).
+
+%% Application callbacks
+-export([start/2
+ ,stop/1]).
+
+%%====================================================================
+%% API
+%%====================================================================
+
+start(_StartType, _StartArgs) ->
+ {{appid}}_sup:start_link().
+
+%%--------------------------------------------------------------------
+stop(_State) ->
+ ok.
+
+%%====================================================================
+%% Internal functions
+%%====================================================================