From c83d037404062138aa32ecbc138529e7c13ba7e2 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Thu, 19 Dec 2013 22:01:25 +0000 Subject: Add a library template --- priv/templates/simplelib.erl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 priv/templates/simplelib.erl (limited to 'priv/templates/simplelib.erl') diff --git a/priv/templates/simplelib.erl b/priv/templates/simplelib.erl new file mode 100644 index 0000000..384caa5 --- /dev/null +++ b/priv/templates/simplelib.erl @@ -0,0 +1,20 @@ +%% See LICENSE for licensing information. +%% -*- coding: utf-8 -*- +-module({{libid}}). + +%% {{libid}}: {{libid}} library's entry point. + +-export([my_func/0]). + + +%% API + +my_func() -> + ok(). + +%% Internals + +ok() -> + ok. + +%% End of Module. -- cgit v1.1 From 70cdb37942ebb50424ae52cd6986c9346f2286f4 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Thu, 19 Dec 2013 23:05:49 +0000 Subject: Add command to rebar:command_names/0 --- priv/templates/simplelib.erl | 2 -- 1 file changed, 2 deletions(-) (limited to 'priv/templates/simplelib.erl') diff --git a/priv/templates/simplelib.erl b/priv/templates/simplelib.erl index 384caa5..2c4451f 100644 --- a/priv/templates/simplelib.erl +++ b/priv/templates/simplelib.erl @@ -1,5 +1,3 @@ -%% See LICENSE for licensing information. -%% -*- coding: utf-8 -*- -module({{libid}}). %% {{libid}}: {{libid}} library's entry point. -- cgit v1.1