summaryrefslogtreecommitdiff
path: root/priv/templates/plugin.template
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-11-10 19:03:25 +0000
committerFred Hebert <mononcqc@ferd.ca>2014-11-10 22:37:09 +0000
commitc832b567dba73ddbed961b265f2018b3f2cb45ae (patch)
treee82b6bba0a1e6e68c17adeb185cb5fad399b3a4c /priv/templates/plugin.template
parente202367322b7ce155379196f42a009cf5bfa7e22 (diff)
Redo templates with docs and whatnot
This totally breaks compatibility with rebar2, and maybe it shouldn't have.
Diffstat (limited to 'priv/templates/plugin.template')
-rw-r--r--priv/templates/plugin.template18
1 files changed, 11 insertions, 7 deletions
diff --git a/priv/templates/plugin.template b/priv/templates/plugin.template
index bc44863..7235b60 100644
--- a/priv/templates/plugin.template
+++ b/priv/templates/plugin.template
@@ -1,7 +1,11 @@
-{variables, []}.
-{template, "plugin.erl", "src/{{appid}}.erl"}.
-{template, "otp_lib.app.src", "src/{{appid}}.app.src"}.
-{template, "rebar.config", "rebar.config"}.
-{template, "gitignore", ".gitignore"}.
-{template, "LICENSE", "LICENSE"}.
-{template, "plugin_README.md", "README.md"}.
+{description, "Rebar3 plugin"}.
+{variables, [
+ {appid, "myplugin", "Name of the plugin"},
+ {desc, "A rebar plugin", "Short description of the plugin's purpose"}
+]}.
+{template, "plugin.erl.dtl", "src/{{appid}}.erl"}.
+{template, "otp_lib.app.src.dtl", "src/{{appid}}.app.src"}.
+{template, "rebar.config.dtl", "rebar.config"}.
+{template, "gitignore.dtl", ".gitignore"}.
+{template, "LICENSE.dtl", "LICENSE"}.
+{template, "plugin_README.md.dtl", "README.md"}.