/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

  1. %% @author {{author}}
  2. %% @copyright {{appid}} {{author}}
  3. %% @doc Callbacks for the {{appid}} application.
  4. -module({{appid}}_app).
  5. -author("{{author}}").
  6. -behaviour(application).
  7. -export([start/2,stop/1]).
  8. %% @spec start(_Type, _StartArgs) -> ServerRet
  9. %% @doc application start callback for {{appid}}.
  10. start(_Type, _StartArgs) ->
  11. {{appid}}_deps:ensure(),
  12. {{appid}}_sup:start_link().
  13. %% @spec stop(_State) -> ServerRet
  14. %% @doc application stop callback for {{appid}}.
  15. stop(_State) ->
  16. ok.