PageRenderTime 150ms CodeModel.GetById 29ms app.highlight 2ms RepoModel.GetById 118ms app.codeStats 0ms

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