aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bootstrap.mk
diff options
context:
space:
mode:
authorderwinlu <[email protected]>2016-02-17 18:08:06 +0100
committerderwinlu <[email protected]>2016-02-17 18:08:06 +0100
commit8723c2cadaa638db84a8b3c97ded2157cfe6c44e (patch)
tree300624b4edb7387a6e380fb7f97e614d1bb13069 /plugins/bootstrap.mk
parentbb6b94750c9256ea8c8b28d5df37086803859196 (diff)
downloaderlang.mk-8723c2cadaa638db84a8b3c97ded2157cfe6c44e.tar.gz
erlang.mk-8723c2cadaa638db84a8b3c97ded2157cfe6c44e.tar.bz2
erlang.mk-8723c2cadaa638db84a8b3c97ded2157cfe6c44e.zip
Add 'module' template
Every .erl source file will need at least a -module and a single -export definition. With the 'module' template a file can be quickly created that already populates -module with the right value as well as an empty export field.
Diffstat (limited to 'plugins/bootstrap.mk')
-rw-r--r--plugins/bootstrap.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk
index 4aa1052..5ece8f9 100644
--- a/plugins/bootstrap.mk
+++ b/plugins/bootstrap.mk
@@ -172,6 +172,11 @@ code_change(_OldVsn, State, _Extra) ->
{ok, State}.
endef
+define tpl_module
+-module($(n)).
+-export([]).
+endef
+
define tpl_cowboy_http
-module($(n)).
-behaviour(cowboy_http_handler).