/support/templates/mochiwebapp_skel/src/mochiapp_app.erl
http://github.com/basho/mochiweb · Erlang · 22 lines · 9 code · 6 blank · 7 comment · 0 complexity · 460da4049111b5cf07e2b5874bb0378f MD5 · raw file
- %% @author {{author}}
- %% @copyright {{appid}} {{author}}
- %% @doc Callbacks for the {{appid}} application.
- -module({{appid}}_app).
- -author("{{author}}").
- -behaviour(application).
- -export([start/2,stop/1]).
- %% @spec start(_Type, _StartArgs) -> ServerRet
- %% @doc application start callback for {{appid}}.
- start(_Type, _StartArgs) ->
- {{appid}}_deps:ensure(),
- {{appid}}_sup:start_link().
- %% @spec stop(_State) -> ServerRet
- %% @doc application stop callback for {{appid}}.
- stop(_State) ->
- ok.