Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

my rebar templates

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 gen_server.erl
Octocat-spinner-32 gen_server.template
Octocat-spinner-32 webmachine_resource.erl
Octocat-spinner-32 webmachine_resource.template
README.markdown

Instalation

First clone the repo git clone https://github.com/JakubOboza/rebar-templates next symlink to ~/.rebar/templates eg. ln -s /Users/kuba/Workspace/Erlang/rebar-templates /Users/kuba/.rebar/templates and have fun!

Usage

Currently i have two templates webmachine resource and gen_server. To generate webmachine resource do this:

λ rebar create template=webmachine_resource name=simple app_name=my description="Cool resource"

this will generate file:

==> src (create)
Writing src/my_simple_resource.erl

:)

Templates

  • template=webmachine_resource options[name, app_name, copyright_year, author_name, author_email]
  • template=gen_server options[name, author_name, author_email, copyright_year]

Author

Jakub Oboza: http://no-fucking-idea.com

Something went wrong with that request. Please try again.