diff --git a/finsup.erl b/finsup.erl new file mode 100644 index 0000000..6991976 --- /dev/null +++ b/finsup.erl @@ -0,0 +1,25 @@ +%%%' HEADER +%%% @author {{author_name}} <{{author_email}}> +%%% @since {{date}} +%%% @copyright {{copyright_year}} {{author_name}} +%%% @doc {{description}} +%%% @end +-module({{name}}_sup). + +-behaviour(supervisor). +-export([start_link/0]). +-export([init/1]). + +-define(SERVER, ?MODULE). +%%%. +%%%' PUBLIC API +start_link() -> + supervisor:start_link({local, ?SERVER}, ?MODULE, []). + +%%%. +%%%' CALLBACKS +init([]) -> + {ok, { {one_for_one, 5, 10}, []} }. + +%%%. +%%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker: diff --git a/finsup.template b/finsup.template new file mode 100644 index 0000000..bf7561f --- /dev/null +++ b/finsup.template @@ -0,0 +1,9 @@ +{variables, [ + {name, "supname"}, + {app_dir, "."}, + {copyright_year, "2011"}, + {author_name, "Susan Potter"}, + {author_email,"me@susanpotter.net"} +]}. +{dir, "{{app_dir}}/src"}. +{template, "finsup.erl", "{{app_dir}}/src/{{name}}_sup.erl"}.