From 8723c2cadaa638db84a8b3c97ded2157cfe6c44e Mon Sep 17 00:00:00 2001 From: derwinlu Date: Wed, 17 Feb 2016 18:08:06 +0100 Subject: 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. --- plugins/bootstrap.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins') 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). -- cgit v1.2.3