diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-11-10 19:35:10 -0600 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-11-10 19:35:10 -0600 |
commit | 022ffdf6cb7fdf77f5bc3e3d2ecbe715a9b84c7a (patch) | |
tree | c70c4a6b9065b0132e785dcf15b90f9833577c7f /priv/templates/plugin.template | |
parent | e202367322b7ce155379196f42a009cf5bfa7e22 (diff) | |
parent | 392abf148122be020f3955005497d488d3f881fd (diff) |
Merge pull request #28 from tsloughter/templates-redux
Redo templates with docs and whatnot
Diffstat (limited to 'priv/templates/plugin.template')
-rw-r--r-- | priv/templates/plugin.template | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/priv/templates/plugin.template b/priv/templates/plugin.template index bc44863..a7e15cc 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, [ + {name, "myplugin", "Name of the plugin"}, + {desc, "A rebar plugin", "Short description of the plugin's purpose"} +]}. +{template, "plugin.erl.dtl", "src/{{name}}.erl"}. +{template, "otp_lib.app.src.dtl", "src/{{name}}.app.src"}. +{template, "rebar.config.dtl", "rebar.config"}. +{template, "gitignore.dtl", ".gitignore"}. +{template, "LICENSE.dtl", "LICENSE"}. +{template, "plugin_README.md.dtl", "README.md"}. |