Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added author_name template variable.

  • Loading branch information...
commit d756d71813292129fd9d139b6ac0bae10a3316b7 1 parent afbee84
@mbbx6spp authored
View
14 ejabberdmod.erl
@@ -1,12 +1,12 @@
%%%----------------------------------------------------------------------
-%%% File : {{module}}.erl
-%%% Author : Susan Potter <me@susanpotter.net>
-%%% Purpose : ejabberd module that ... listens to packets sent and
-%%% received by users.
+%%% File : mod_{{name}}.erl
+%%% Author : {{author_name}}
+%%% Purpose : ejabberd module that ... listens to packets sent & received
+%%% by users.
%%%----------------------------------------------------------------------
--module({{module}}).
--author('me@susanpotter.net').
+-module(mod_{{name}}).
+-author({{author_name}}).
-behaviour(gen_mod).
@@ -16,7 +16,7 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
--define(PROCNAME, ejabberd_{{module}}).
+-define(PROCNAME, ejabberd_{{name}}).
%% -------------------
%% Module control
View
6 ejabberdmod.template
@@ -1,2 +1,4 @@
-{variables, [{appid, "myejabberdmod"}]}.
-{template, "ejabberdmod.erl", "src/mod_{{appid}}.erl"}.
+{variables, [
+ {name, "myejabberdmod"},
+ {author_name, "Susan Potter <me@susanpotter.net>"}]}.
+{template, "ejabberdmod.erl", "src/mod_{{name}}.erl"}.
View
10 gen_server.erl
@@ -1,9 +1,11 @@
-%%
-%% Module {{name}}
-%%
+%%%----------------------------------------------------------------------
+%%% File : {{name}}.erl
+%%% Author : {{author_name}}
+%%% Purpose : gen_server that ....
+%%%----------------------------------------------------------------------
-module({{name}}).
+-author({{author_name}}).
--author("Susan Potter <me@susanpotter.net>").
-behaviour(gen_server).
-export([start_link/0]).
View
4 gen_server.template
@@ -1,2 +1,4 @@
-{variables, [{name, "myserver"}]}.
+{variables, [
+ {name, "myserver"},
+ {author_name, "Susan Potter <me@susanpotter.net>"}]}.
{template, "gen_server.erl", "src/{{name}}.erl"}.
Please sign in to comment.
Something went wrong with that request. Please try again.