summaryrefslogtreecommitdiff
path: root/priv/templates/escript_mod.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-09 13:23:59 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-09 13:23:59 -0500
commit6c72286bf9a60e9c2945a9a416762b175f5fe160 (patch)
treeac5d52fe1ed6330001bcdf12b1a3bac6a3119f10 /priv/templates/escript_mod.erl
parentb904c5b57a4dbe393009da0bc6720c2a78a310e1 (diff)
add escriptize project template
Diffstat (limited to 'priv/templates/escript_mod.erl')
-rw-r--r--priv/templates/escript_mod.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/priv/templates/escript_mod.erl b/priv/templates/escript_mod.erl
new file mode 100644
index 0000000..f8a779b
--- /dev/null
+++ b/priv/templates/escript_mod.erl
@@ -0,0 +1,17 @@
+-module({{name}}).
+
+%% API exports
+-export([main/1]).
+
+%%====================================================================
+%% API functions
+%%====================================================================
+
+%% escript Entry point
+main(Args) ->
+ io:format("Args: ~p~n", [Args]),
+ erlang:halt(0).
+
+%%====================================================================
+%% Internal functions
+%%====================================================================